Skip to main content

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, where
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");
});