filter equivalent of $lastSort

Hi, I’m using a selectFilter in a table.

However, when I change the data in the table, the selectFilter is not reapplied to the data.

I’m imagining that there must be some filter equivalent of the $lastSort.
Is that correct, or is filtering re-applied differently??

David

I’ve been experimenting with various versions of table.filterByAll().

I can get the selected value of the selectFilter for that column, but only inside the filterByAll method, but I can’t seem to trigger a filter manually.

I guess I’m looking for either:
a) A way to refresh a filter manually, or
b) A way to get the value of a selectFilter so that I can reapply it in a table.filter() method.

Additionally, depending on the solution, I might also need a way to manually reset a selectFilter when the data changes.

Thanks
David

You can use dtable.filterByAll() to reapply the current values of filters.
If you need to get|set value of filter you can use getFilter method that returns the filter object ( in case of select filter it will be HTML select object )