From fbbf467696810b7ca2ddac6de0d076af424a2ef0 Mon Sep 17 00:00:00 2001 From: shentao Date: Wed, 19 Apr 2017 18:24:26 +0800 Subject: integrated monitor and performance functions Issue-id: CLIENT-175 Change-Id: I07adc77afd9f62f615790896c9241f8430583398 Signed-off-by: shentao --- .../thirdparty/zTree/api/en/fn.zTree.init.html | 75 ++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100755 common/src/main/webapp/thirdparty/zTree/api/en/fn.zTree.init.html (limited to 'common/src/main/webapp/thirdparty/zTree/api/en/fn.zTree.init.html') diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/fn.zTree.init.html b/common/src/main/webapp/thirdparty/zTree/api/en/fn.zTree.init.html new file mode 100755 index 00000000..cf97d2bc --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/fn.zTree.init.html @@ -0,0 +1,75 @@ +
+
+

Function(obj, zSetting, zNodes)$.fn.zTree.init

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

The method which used to create zTree.

+

1. The web page need to use W3C markup. For example: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

+

2. Need to load jquery-1.4.2.js or other higher versions.

+

3. Need to load jquery-ztree.core-3.0.js. If you need to use the edit mode or checkbox / radio mode, you need to load jquery-ztree.exedit-3.0.js and jquery-ztree.excheck-3.0.js.

+

4. Need to load zTreeStyle.css and image files

+

5. If you need to use custom icons, please refer to the appropriate Demo.

+

6. Note: You need to set zTree container's class name to "ztree". If you need to change, don't forget to modify the css file. If you need other special styles, can modify the css file to their own needs.

+
+
+

Function Parameter Descriptions

+
+

objectjQuery Object

+

DOM Container for zTree

+

zSettingJSON

+

zTree's configuration data, please refer to "setting details" in the API Document.

+

zNodesArray(JSON) / JSON

+

zTree's node data, please refer to "treeNode data details" in the API Document.

+

1. zTree v3.x support to add single node, that is, if only to add one node, you can use JSON without using Array.

+

2. If you need asynchronous load root nodes, can be set to null or [ ]

+

3. If you use simple data mode, please refer to "setting.data.simpleData" in the API Document.

+

Return JSON

+

zTree object

+

This object can provide the methods of operate the zTree

+

You can use $.fn.zTree.getZTreeObj method at any time to obtain.

+
+

Examples of setting & function

+

1. create a simple tree

+
<!DOCTYPE html>
+<HTML>
+ <HEAD>
+  <TITLE> ZTREE DEMO </TITLE>
+  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
+  <link rel="stylesheet" href="zTreeStyle/zTreeStyle.css" type="text/css">
+  <script type="text/javascript" src="jquery-1.4.2.js"></script>
+  <script type="text/javascript" src="jquery.ztree.core-3.5.js"></script>
+<!--
+  <script type="text/javascript" src="jquery.ztree.excheck-3.5.js"></script>
+  <script type="text/javascript" src="jquery.ztree.exedit-3.5.js"></script>
+-->
+  <SCRIPT type="text/javascript" >
+	var zTreeObj,
+	setting = {
+		view: {
+			selectedMulti: false
+		}
+	},
+	zTreeNodes = [
+		{"name":"Site Map", open:true, children: [
+			{ "name":"google", "url":"http://www.google.com", "target":"_blank"},
+			{ "name":"baidu", "url":"http://baidu.com", "target":"_blank"},
+			{ "name":"sina", "url":"http://www.sina.com.cn", "target":"_blank"}
+			]
+		}
+	];
+
+	$(document).ready(function(){
+		zTreeObj = $.fn.zTree.init($("#tree"), setting, zTreeNodes);
+
+	});
+  </SCRIPT>
+ </HEAD>
+
+<BODY>
+<ul id="tree" class="ztree" style="width:230px; overflow:auto;"></ul>
+ </BODY>
+</HTML>
+
+
\ No newline at end of file -- cgit 1.2.3-korg