From 21d72c4a80fe2937d0c4ddd20624b27adbcd989b Mon Sep 17 00:00:00 2001 From: lizi00164331
Used to capture the event when mouse right click node.
+If you set 'setting.callback.beforeRightClick',and return false, zTree will not trigger the 'onRightClick' callback.
+If you set 'setting.callback.onRightClick', zTree will shield the browser context menu when mouse right click on zTree.
+Default: null
+event Object
+zTree unique identifier: treeId, easy for users to control.
+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.
+function zTreeOnRightClick(event, treeId, treeNode) {
+ alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
+};
+var setting = {
+ callback: {
+ onRightClick: zTreeOnRightClick
+ }
+};
+......
+