n🅰🅳🅴🅴m
ExportAction with dynamic exporter name based on the current row model value
Sorry for the late answer,
For the first option, i don't think that will clean way to do this, i got around 15 exports to deal with.
For the second option, on which object are you referring to?
Well the digging continues 😅 , i found this on the net, so yea i'm experimenting
https://medium.com/@cameron_germein/things-i-wish-someone-had-explained-to-me-dependency-injection-in-laravel-filament-what-does-5dae3bbf8f23
22 replies
ExportAction with dynamic exporter name based on the current row model value
public function actions(array | ActionGroup $actions, ActionsPosition | string | Closure | null $position = null): static
for the 2nd argument it is allowed 🤦🏻♂️
22 replies
ExportAction with dynamic exporter name based on the current row model value
i got this error
Filament\Tables\Table::actions(): Argument #1 ($actions) must be of type Filament\Tables\Actions\ActionGroup|array, Closure given, called in /var/www/html/app/Livewire/ListTables.php on line 109
it weird though, i have checked the function, closure is allowed
22 replies
ExportAction with dynamic exporter name based on the current row model value
->actions([
ExportAction::make('export_list')
->exporter(AuthorExporter::class)
->color('info')
->label(false)
->tooltip(('admin.export'))
->icon('heroicon-o-arrow-down-tray')
->requiresConfirmation()
->modalHeading(('admin.export'))
->modalIcon('heroicon-o-information-circle')
->modalDescription(__('admin.confirm_message')),
])
22 replies