![logo light](https://filamentglow.com/images/head-glow.webp)
Select All Items in a Dropdown Select
- Published: 15 Apr 2024 Updated: 04 May 2024
Let Users to Select All Options with a Simple Hint Action
![Select All Items in a Dropdown Select](https://filamentglow.com/storage/media/7d2d51a6-c48e-41f9-86e9-c6431eff037f.png)
When you have a dropdown select with multi select options, you can add a hint action to easily select all options at once.
and this is how you can do it:
1->hintAction(fn (Select $component) => Action::make('select all')2 ->action(fn () => $component->state(ServiceCenter::pluck('id')->toArray()))3)
![logo light](https://filamentglow.com/images/head-glow.webp)
Related Tricks:
Usability: Knowing whether or not the record was saved.
I’ll guide you on how to test your Form Builder using Livewire Volt with a class-based component.
Sometimes, when we need to test our application locally, we always have to fill forms manually. Let's take the Filament approach and achieve this with more accurate data.
make all Field or any components translatable
toggle the visibility of an action when hover the component