#Table filter delay or submit

1 messages · Page 1 of 1 (latest)

chrome kestrel
#

Hello, as mentioned in the title, i want to make table filter only firing event after certain delay or after a submit button is clicked on the form, is this possible ?

uneven path
#

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...

chrome kestrel
uneven path
#

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.

chrome kestrel
#

thank you for sharing this