FilamentF
Filament15mo ago
Myster

Separate bulkactions.

Hey guys, is it possible to improve the visualization of bulkaction? I would like to separate them by lines, as if they were categories.


Bulkaction:

Test1
Test2
Test2
Delete

bulkaction wanted to know if it was possible:

Test1
-------
Test2
Test2
-------
Delete
Solution
I guess you could use a BulkActionGroup along with ->dropdown(false)

something like that:
BulkActionGroup::make([
   Tables\Actions\BulkAction::make('test'),

   BulkActionGroup::make([
      Tables\Actions\BulkAction::make('test2'),
      Tables\Actions\BulkAction::make('test3'),
   ])->dropdown(false),

   Tables\Actions\DeleteBulkAction::make(),
]),
Screenshot_2024-10-08_210237.png
Was this page helpful?