F
Filament2y ago
G3z

Defer table filters

I have fairly complex filters and when they change rapidly the state get's messy. the problem is that each filter triggers a refresh individually, is it possible to set a defer for the whole filters section ?
3 Replies
Dan Harrin
Dan Harrin2y ago
i dont think we have an option for that at the moment but its a good idea! internally you would just ensure that we only pass ->reactive() to the filter form conditionally, and then add an Apply filters button to the bottom of the form
G3z
G3zOP2y ago
I'm not sure I'm capable enough to make a PR anyway you prefer $table->columns([...])->filters([...], deferred:true) or $table->columns([...])->filters([...])->deferredFilters()
Dan Harrin
Dan Harrin2y ago
probably shouldDeferTableFilters(): bool on the list page
Want results from more Discord servers?
Add your server