F
Filament11mo ago
Robin

Bulk actions always displaying

Is it possible the have the dropdown being a button for the selected bulk actions?
No description
6 Replies
Vp
Vp11mo ago
Can you explain more.. i don't understand what you want exactly
Robin
Robin11mo ago
So you have in the top right the bulk actions button, but I kinda want an "always visible" bulk action button, that does an API call for example on click, with the selected items
Vp
Vp11mo ago
So you want to create new bulk actions for "always visible" right?
Robin
Robin11mo ago
No, i want a button at the top of the page (where the bulk actions are) that works like a bluk action, but that is not in the dropdown
Homd
Homd11mo ago
You can use header action and put your bulk action this way? protected function getTableHeaderActions(): array { return [ BulkAction::make('delete') ->action(fn (Collection $records) => $records->each->delete()) ]; }
Robin
Robin11mo ago
Filament\Tables\Table::Filament\Tables{closure}(): Argument #1 ($action) must be of type Filament\Tables\Actions\Action|Filament\Tables\Actions\ActionGroup, Filament\Tables\Actions\BulkAction given it's v2, not v3