F
Filament6mo ago
Ali

Pre select records

Hello, is there a way to preselect some records in my table ?
11 Replies
toeknee
toeknee6mo ago
For bulk actions?
Ali
AliOP6mo ago
yup
toeknee
toeknee6mo ago
Not that I know off, you'd have to use some JS to pre-select them from what I can see.
Ali
AliOP6mo ago
is there a way to not let the user select some of the records though ? i have tried it on my end and couldn't find anything tho. you got any advice ?
toeknee
toeknee6mo ago
Allow them to be selected but exclude them with the action
Ali
AliOP6mo ago
yeah that's what i ended up doing. gotta admit it's not user friendly. I'll dig more for an alternative solution and post it here
toeknee
toeknee6mo ago
Cool! You could look to add support for a disabled bulk option to the column which is tested against the record with a closure. But would need a PR obviously
Ali
AliOP6mo ago
I'll see the next few days. Thanks for the support
Ali
AliOP5mo ago
Thank you for the tip. Is there a way to know when it was added to the documentation ? Or i might just check the github release page of filamentphp. Im going to update this thread as solved. Thank you !
toeknee
toeknee5mo ago
You need to check the GitHub commits

Did you find this page helpful?