F
Filament4mo ago
Ali

Pre select records

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