From 21d72c4a80fe2937d0c4ddd20624b27adbcd989b Mon Sep 17 00:00:00 2001 From: lizi00164331 Date: Mon, 7 Aug 2017 11:39:39 +0800 Subject: Upload the ESR GUI seed code Issue-ID: AAI-68 Change-Id: Ia50ce0570c2fabecd77199d4e8454f56fe587c4e Signed-off-by: lizi00164331 --- .../api/en/setting.callback.onRightClick.html | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onRightClick.html (limited to 'common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onRightClick.html') diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onRightClick.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onRightClick.html new file mode 100644 index 0000000..86b4b01 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onRightClick.html @@ -0,0 +1,36 @@ +
+
+

Function(event, treeId, treeNode)setting.callback.onRightClick

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

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

+
+
+

Function Parameter Descriptions

+
+

eventjs event Object

+

event Object

+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodeJSON

+

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.

+
+

Examples of setting & function

+

1. When mouse right click node, alert info about 'tId' and 'name'.

+
function zTreeOnRightClick(event, treeId, treeNode) {
+    alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
+};
+var setting = {
+	callback: {
+		onRightClick: zTreeOnRightClick
+	}
+};
+......
+
+
\ No newline at end of file -- cgit 1.2.3-korg