getFilters()
Description
Returns an object with the applied filters
Usage
getFilters({ permanent?: boolean }): object;
Parameters
permanent
- (optional) false by default. Allows getting the list of permanent filters
Returns
The method returns an object with the applied filters, where:
key
- the id of a filtervalue
- an object with the rule and config properties
Example
const diagram = new dhx.Diagram("diagram_container", {
// configuration settings
});
diagram.data.parse(data);
const filters = diagram.data.getFilters(); // gets all the applied filters
console.log(filters);
Change log: Added in v6.0