Skip to main content


fires after adding an item

afterAdd: (newItem: any) => void;


newItem: object - the object of an added item

Example"afterAdd", function(id){
console.log("A new item is added");

Event can be used to provide default values or a default formatting for the item data.

Related sample: Diagram. Org chart mode. Events