Skip to main content

itemDblClick

fires on double-clicking a tree item

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

Parameters:

  • id: string | number - the id of an item
  • e: Event - a native event object

Example

// allows opening folders on double clicktree.events.on("ItemDblClick", function(id, e){    tree.data.update(id, {opened: !tree.data.getItem(id).opened})});

Related sample: Tree. Events