F
Filament15mo 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
Vp15mo ago
Can you explain more.. i don't understand what you want exactly
Robin
RobinOP15mo 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
Vp15mo ago
So you want to create new bulk actions for "always visible" right?
Robin
RobinOP15mo 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
Homd15mo 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
RobinOP15mo 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
Want results from more Discord servers?
Add your server