How to debounce/delay SearchBuilder filtering/
How to debounce/delay SearchBuilder filtering/
When using SearchBuilder on a serverside table, having the table refresh on each character input can be disruptive and it blocks further inputs until it loads the data.
Currently the normal search has a debounce feature and doesn't perform the search until after 400ms has passed, is there a way to make SearchBuilder behave the same?
This question has an accepted answers - jump to answer
Answers
If you have
searchDelayset, it should be doing a throttle (note that isn't the same as a debounce - it limits the number of requests in that time period, rather than waiting until the end of the timeout).I think I will change that to a debounce as it makes more sense than a throttle there. That will be in the next version though, which might be a little while out as it is part of a large change to move to DataTables 3.
Regards,
Allan