F
Filament5mo ago
Ali

Pre select records

Hello, is there a way to preselect some records in my table ?
11 Replies
toeknee
toeknee5mo ago
For bulk actions?
Ali
AliOP5mo ago
yup
toeknee
toeknee5mo ago
Not that I know off, you'd have to use some JS to pre-select them from what I can see.
Ali
AliOP5mo 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
toeknee5mo ago
Allow them to be selected but exclude them with the action
Ali
AliOP5mo 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
toeknee5mo 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
AliOP5mo ago
I'll see the next few days. Thanks for the support
Ali
AliOP4mo 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
toeknee4mo ago
You need to check the GitHub commits
Want results from more Discord servers?
Add your server