Used to capture the right click event before the 'onRightClick' callback, The return value controls the 'onRightClick' callback.
Default: null
zTree unique identifier: treeId.
JSON data object of the node which is mouse right clicked
If the DOM which mouse right clicked isn't a node, it will return null.
return true or false
If return false, ztree will not trigger the 'onRightClick' callback, no effect on other operations.
function myBeforeRightClick(treeId, treeNode) {
return false;
};
var setting = {
callback: {
beforeRightClick: myBeforeRightClick
}
};
......