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

Function(treeNode)zTreeObj.getNodeIndex

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Get the node's index in the same level nodes. (start from 0)

+

Please use zTree object to executing the method.

+
+
+

Function Parameter Descriptions

+
+

treeNodeJSON

+

JSON data object of the node which need to get index.

+

Please ensure that this data object is an internal node data object in zTree.

+

Return Number

+

return the index. (start from 0)

+

If there is no this node, return -1.

+
+

Examples of function

+

1. Get the first selected node's index in the same level nodes.

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