#Table filter delay or submit
1 messages · Page 1 of 1 (latest)
Hi @chrome kestrel, I don't think there's a simple solution (like a setting...), but I think you can accomplish this by using a custom form for your filters:
https://filamentphp.com/docs/2.x/tables/filters#custom-filter-forms
Here's a quick example:
Filter::make('state')
->form([
Select::make('state')
->options([ ... ])
->stateBindingModifiers(['debounce.1s']),
])
Adding a 'submit' button would require customizing some of the internal Blade views...
hey thanks ! i will try it tomorrow, 1 question though, i cant find stateBindingModifiers in the documentation, is there any other place to learn filament ?
Yeah, this is not in the documentation... maybe it's more like an internal thing. I found it looking around in the source code, trying to solve a different problem.
thank you for sharing this