afterRemove
Description
Fires after removing an item from a data collection
Usage
afterRemove: (removedItem: object) => void;
Parameters
The callback of the event takes the following parameter:
removedItem
- (required) the object of a removed item
Example
// initializing Diagram
const diagram = new dhx.Diagram("diagram_container", {
type: "default"
});
// loading data
diagram.data.parse(data);
// attaching a handler to the event
diagram.events.on("afterRemove", (newItem) => {
console.log("afterRemove "+ item);
});