Skip to main content

itemClick

fires on clicking a tree item

itemClick: (id: Id, e: Event) => void;

Parameters:

  • id: string | number - the id of an item
  • e: 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