filter
Description
fires after filtering a data collection
Usage
filter: (filter?: object) => void;
Parameters
The callback of the filter event is called with the following parameter:
object: {key: object }
- an object with all the active filters, wherekey
- the id of an active filterobject
- an object with the rule and config properties
info
For handling the inner events of Diagram Data Collection you can use the on() method.
Example
// initializing Diagram
const diagram = new dhx.Diagram("diagram_container", {
type: "default"
});
diagram.data.parse(data);
diagram.events.on("filter", (filter) => {
console.log("Items were filtered");
});