Multi-select select all/deselect all
Is there any better solution to select all/deselect all options then the following, needs help to refactor the toggeling
3 Replies
I think you should be able to get options from the component then you won't need the db query
maybe
$component->getOptions()
or something similarNeither of these working when click on 'select all'
Sorry, this works:
Sandro Gehri (@gehrisandro) on X
π‘ Filament tip
@filamentphp
hintAction()
makes it really easy to add a "Select all" action to your select elements.
Code in thread π![From An unknown user](https://images-ext-1.discordapp.net/external/Ddmgu3j3N4ztNEWDmDMB9mns6VVJPQp7L2CfNN2dCok/https/pbs.twimg.com/ext_tw_video_thumb/1739980049019703296/pu/img/hLxGpX-2tXG8N9lC.jpg%3Alarge)
Twitter