From 33796336d546fa61a3906500ea56d77c960ab222 Mon Sep 17 00:00:00 2001 From: “shentao” Date: Fri, 21 Oct 2016 15:05:13 +0800 Subject: GSO-35 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I3ad00c3c9265a1b3818decedca1d77995864ba29 Signed-off-by: “shentao” --- .../thirdparty/zTree/api/en/treeNode.open.html | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.open.html (limited to 'openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.open.html') diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.open.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.open.html new file mode 100644 index 00000000..bc910de3 --- /dev/null +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.open.html @@ -0,0 +1,30 @@ +
+
+

BooleantreeNode.open

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Used to record the parent node's expand status.

+

1. When zTree initialize the node data, if you set treeNode.open = true, zTree will default expand this parent node.

+

2. Leaf node's 'open' attribute is false.

+

3. In order to solve the problem of someone make json data, supporting "false", "true" format of the data string.

+

4. When setting.async.enable = false, the parent node will be expanded which have no child nodes and its attribute 'open' is true. (v3.5.15+)

+

Default: false

+
+
+

Boolean Format

+
+

true means: the parent node is expanded.

+

false means: the parent node is collapsed.

+
+

Examples of treeNode

+

1. Get the first selected node's expand status.

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