Bulk actions always displaying
Is it possible the have the dropdown being a button for the selected bulk actions?
6 Replies
Can you explain more.. i don't understand what you want exactly
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
So you want to create new bulk actions for "always visible" right?
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
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())
];
}
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