getFilters()
returns an object with the applied filters
getFilters({ permanent?: boolean }): { [key: string]: { rule: object | callback, config: object } };
Parameters:
permanent: boolean
- optional, false by default. Allows getting the list of permanent filters
Returns:
filters: object
- an object with the applied filters, where the key is the id of a filter and the value is an object with therule
andconfig
properties
Example
const grid = new dhx.Grid("grid_container", {
type: "tree",
columns: [
// columns config
],
data: dataset,
});
grid.data.getFilters();