Passing an argument to a custom table action

->actions([
Tables\Actions\EditAction::make(),
\Filament\Tables\Actions\Action::make('Generate QR Codes')
->label('QRCodes')
->action('generateAndDownloadQRCodes')
->color('success')
// ->record(fn($record) => $record->id)
->arguments(fn($record) => ['id' => $record->id])
])
->actions([
Tables\Actions\EditAction::make(),
\Filament\Tables\Actions\Action::make('Generate QR Codes')
->label('QRCodes')
->action('generateAndDownloadQRCodes')
->color('success')
// ->record(fn($record) => $record->id)
->arguments(fn($record) => ['id' => $record->id])
])
how to pass arguments to a custom action, search the entire documentation did see anything mentioned regarding this
1 Reply
tuto1902
tuto19024w ago
As far as I know, you only have a set number of things you can pass into an action. https://filamentphp.com/docs/3.x/actions/advanced#action-utility-injection

Did you find this page helpful?