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” --- .../zTree/api/en/setting.view.showTitle.html | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.showTitle.html (limited to 'openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.showTitle.html') diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.showTitle.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.showTitle.html new file mode 100644 index 00000000..66bb26e6 --- /dev/null +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.showTitle.html @@ -0,0 +1,47 @@ +
+
+

Boolean / Function(treeId, treeNode)setting.view.showTitle

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Set to show or hide the 'title' attribute of node DOM.

+

Please see the setting.data.key.title attribute

+

Default: true

+
+
+

Boolean Format

+
+

true means: show the 'title' attribute of node DOM.

+

false means: hide the 'title' attribute of node DOM.

+

When setting.view.showTitle = true & setting.data.key.title = '', zTree will set the 'setting.data.key.name' attribute to the 'setting.data.key.title'.

+
+

Function Parameter Descriptions

+
+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodeJSON

+

JSON data object of the node which need to show title.

+

Return Boolean

+

Return value is same as 'Boolean Format'

+
+

Examples of setting & function

+

1. Hide the 'title' attribute of node DOM.

+
var setting = {
+	view: {
+		showTitle: false
+	}
+};
+......
+

2. Hide the 'title' attribute of node DOM which level=2.

+
function showTitleForTree(treeId, treeNode) {
+	return treeNode.level != 2;
+};
+var setting = {
+	view: {
+		showTitle: showTitleForTree
+	}
+};
+......
+
+
\ No newline at end of file -- cgit 1.2.3-korg