itemDblClick
fires on double-clicking a tree item
itemDblClick: (id: string | number, e: Event) => void;
Parameters:
id: string | number
- the id of an iteme: Event
- a native event object
Example
// allows opening folders on double click
tree.events.on("itemDblClick", function(id, e){
tree.data.update(id, {opened: !tree.data.getItem(id).opened})
});
Related sample: Tree. Events