itemContextMenu

fires on calling a context menu for a tree item on right click

void itemContextMenu(){ ... };

Deprecated

instead of it, you can use the itemRightClick method:

tree.events.on("itemRightClick", function(id, e){
    console.log("The item with the id "+ id +" was right-clicked.");
});

Example

tree.events.on("itemContextMenu", function(id, e){
    console.log("The item with the id "+ id +" was right-clicked.");
});

Back to top