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 --- .../zTree/api/cn/setting.callback.onMouseUp.html | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onMouseUp.html (limited to 'common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onMouseUp.html') diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onMouseUp.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onMouseUp.html new file mode 100644 index 0000000..a969fef --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onMouseUp.html @@ -0,0 +1,35 @@ +
+
+

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

+

概述[ 依赖 jquery.ztree.core 核心 js ]

+
+

+
+

用于捕获 zTree 上鼠标按键松开后的事件回调函数

+

如果设置了 setting.callback.beforeMouseUp 方法,且返回 false,将无法触发 onMouseUp 事件回调函数。

+

默认值:null

+
+
+

Function 参数说明

+
+

eventjs event 对象

+

标准的 js event 对象

+

treeIdString

+

对应 zTree 的 treeId,便于用户操控

+

treeNodeJSON

+

鼠标按键松开时所在节点的 JSON 数据对象

+

如果不在节点上,则返回 null

+
+

setting & function 举例

+

1. 每次鼠标按键松开后, 弹出鼠标所在节点的 tId、name 的信息

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