Skip to main content

TreeCollection Events of Toolbar

You can use the following TreeCollection events of Suite 8:

NameDescription
afterAddFires after adding a new item into a tree collection
afterRemoveFires after removing a new item from a tree collection
beforeAddFires before adding a new item into a tree collection
beforeRemoveFires before removing an item from a tree collection
changeFires when a tree collection is modified
filterFires after filtering a tree collection
loadFires when items are loaded in a tree collection
loadErrorFires when loading of data fails
removeAllFires when all items are removed from a tree collection
const editor = new dhx.DiagramEditor("editor_container", {
type: "default",
view: {
toolbar: true
}
});
// handles the "load" event
editor.toolbar.events.on("load", () => {
// some logic here
});
// loads new toolbar data
editor.toolbar.parse(["file", "spacer", "scale"]);