F
Filament6mo ago
Gush

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(),
No description
3 Replies
Gush
GushOP6mo ago
any way of putting the actions on top?
No description
Dennis Koch
Dennis Koch6mo ago
Create a theme and use some CSS
LeandroFerreira
LeandroFerreira6mo ago
why not hintAction?
Want results from more Discord servers?
Add your server