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

Array(JSON)treeNode.children

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

The data collections of node's child nodes.

+

1. If change the 'children' to other attribute, please set the 'setting.data.key.children' attribute.

+

2. If you set to use dynamic tree, when a node is expanded which 'isParent' attribute is true and which has no child nodes, zTree will use ajax to get its child nodes.

+

Default: undefined

+
+
+

Array(JSON) Format

+
+

Standard JSON Data object

+
+

Examples of treeNode

+

1. Use the standard JSON data object.

+
var nodes = [
+{ "id":1, "name":"test1",
+	children: [
+	{ "id":3, "name":"test3"},
+	{ "id":4, "name":"test4"},
+	{ "id":5, "name":"test5"}
+	]
+},
+{ "id":2, "name":"test2"  }
+]
+

2. Get the first root node's child nodes

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