SuffixActions not Sticking to top
Select::make('user_id')
->multiple()
->native(false)
->searchable()
->preload()
->label(__('nlmn-event-module::scheduling.scheduling_resource.event_participants'))
// ->relationship('users', 'name')
->options(User::all()->pluck('name', 'id'))
->suffixActions([
\Filament\Forms\Components\Actions\Action::make('select_all')
->icon('heroicon-o-user')
->label(__('nlmn-event-module::scheduling.scheduling_resource.select_all'))
->action(fn (Select $component) => $component->state(User::pluck('id')->toArray())),
\Filament\Forms\Components\Actions\Action::make('deselect_all')
->label(__('nlmn-event-module::scheduling.scheduling_resource.deselect_all'))
->action(fn (Select $component) => $component->state([]))
->icon('heroicon-o-arrow-uturn-left')
])->inlineSuffix(),
Select::make('user_id')
->multiple()
->native(false)
->searchable()
->preload()
->label(__('nlmn-event-module::scheduling.scheduling_resource.event_participants'))
// ->relationship('users', 'name')
->options(User::all()->pluck('name', 'id'))
->suffixActions([
\Filament\Forms\Components\Actions\Action::make('select_all')
->icon('heroicon-o-user')
->label(__('nlmn-event-module::scheduling.scheduling_resource.select_all'))
->action(fn (Select $component) => $component->state(User::pluck('id')->toArray())),
\Filament\Forms\Components\Actions\Action::make('deselect_all')
->label(__('nlmn-event-module::scheduling.scheduling_resource.deselect_all'))
->action(fn (Select $component) => $component->state([]))
->icon('heroicon-o-arrow-uturn-left')
])->inlineSuffix(),
3 Replies
any way of putting the actions on top?
Create a theme and use some CSS
why not hintAction?