itemClick
fires on clicking a tree item
itemClick: (id: string | number, e: Event) => void;
Parameters:
id: string | number
- the id of an iteme: Event
- a native event object
Example
tree.events.on("itemClick", function(id, e){
console.log("The item with the id "+ id +" was clicked.");
});
Related sample: Tree. Events