'Tabulator dataFiltered and dataFiltering event handlers
According to the documentation of Tabulator 5.1 (I am using v5.1.7), in the signatures of both the dataFiltering and the dataFiltered events, filters is an Array of the filters that are about to be / were applied, as stated below:
table.on("dataFiltering", function(filters){
//filters - array of filters currently applied
});
table.on("dataFiltered", function(filters, rows){
//filters - array of filters currently applied
//rows - array of row components that pass the filters
});
I don't know if I am doing something wrong, but header filters do not seem to be included, i.e. the filters array is different than the array returned from calling table.getFilters(true) although both events fire correctly when a header filter is applied.
Is this behaviour by design - in which case I will have to resort to calling table.getFilters(true) inside the event handler - or have I stumbled upon a glitch in the implementation?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
