Bulk actions always displaying

Is it possible the have the dropdown being a button for the selected bulk actions?
No description
6 Replies
Vp
Vp2y ago
Can you explain more.. i don't understand what you want exactly
Robin
RobinOP2y 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
Vp2y ago
So you want to create new bulk actions for "always visible" right?
Robin
RobinOP2y 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
Homd2y 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
RobinOP2y 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

Did you find this page helpful?