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

Function(treeNode, addFlag)zTreeObj.selectNode

+

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

+
+

+
+

选中指定节点

+

v3.x 支持同时选中多个节点。

+

请通过 zTree 对象执行此方法。

+
+
+

Function 参数说明

+
+

treeNodeJSON

+

需要被选中的节点数据

+

请务必保证此节点数据对象 是 zTree 内部的数据对象

+

addFlagBoolean

+

addFlag = true 表示追加选中,会出现多点同时被选中的情况

+

addFlag = false 表示单独选中,原先被选中的节点会被取消选中状态

+

setting.view.selectedMulti = false 时,此参数无效,始终进行单独选中

+

返回值

+

目前无任何返回值

+
+

function 举例

+

1. 单独选中根节点中第一个节点

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getNodes();
+if (nodes.length>0) {
+	treeObj.selectNode(nodes[0]);
+}
+
+
+
\ No newline at end of file -- cgit 1.2.3-korg