diff options
author | 2017-01-20 17:43:08 +0530 | |
---|---|---|
committer | 2017-01-20 17:43:08 +0530 | |
commit | f0b211f269df2b0bb10d5552d14aeb8991a750ed (patch) | |
tree | 1bd6ccf7503f8dad0785e03ce52937a55ae9555b /openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/fn.zTree.init.html | |
parent | 68036a69f0dd0dad6b6a715d9850997d21f82940 (diff) |
GUI Code refactor
GUI Code refactor for the sun release code.
Issue-Id : CLIENT-11
Change-Id: I771cc25ff3c8ff7a4e939ce7baef7dd94a67974b
Signed-off-by: seshukm <seshu.kumar.m@huawei.com>
Diffstat (limited to 'openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/fn.zTree.init.html')
-rw-r--r-- | openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/fn.zTree.init.html | 148 |
1 files changed, 74 insertions, 74 deletions
diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/fn.zTree.init.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/fn.zTree.init.html index cf97d2bc..9a7e949f 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/fn.zTree.init.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/fn.zTree.init.html @@ -1,75 +1,75 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(obj, zSetting, zNodes)</span><span class="path">$.fn.zTree.</span>init</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>The method which used to create zTree.</p> - <p>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"></p> - <p>2. Need to load jquery-1.4.2.js or other higher versions.</p> - <p>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.</p> - <p>4. Need to load zTreeStyle.css and image files</p> - <p>5. If you need to use custom icons, please refer to the appropriate Demo.</p> - <p>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.</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>object</b><span>jQuery Object</span></h4> - <p>DOM Container for zTree</p> - <h4 class="topLine"><b>zSetting</b><span>JSON</span></h4> - <p>zTree's configuration data, please refer to "setting details" in the API Document.</p> - <h4 class="topLine"><b>zNodes</b><span>Array(JSON) / JSON</span></h4> - <p>zTree's node data, please refer to "treeNode data details" in the API Document.</p> - <p class="highlight_red">1. zTree v3.x support to add single node, that is, if only to add one node, you can use JSON without using Array.</p> - <p class="highlight_red">2. If you need asynchronous load root nodes, can be set to null or [ ]</p> - <p class="highlight_red">3. If you use simple data mode, please refer to "setting.data.simpleData" in the API Document.</p> - <h4 class="topLine"><b>Return </b><span>JSON</span></h4> - <p>zTree object</p> - <p>This object can provide the methods of operate the zTree</p> - <p class="highlight_red">You can use $.fn.zTree.getZTreeObj method at any time to obtain.</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. create a simple tree</h4> - <pre xmlns=""><code><!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></code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(obj, zSetting, zNodes)</span><span class="path">$.fn.zTree.</span>init</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>The method which used to create zTree.</p>
+ <p>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"></p>
+ <p>2. Need to load jquery-1.4.2.js or other higher versions.</p>
+ <p>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.</p>
+ <p>4. Need to load zTreeStyle.css and image files</p>
+ <p>5. If you need to use custom icons, please refer to the appropriate Demo.</p>
+ <p>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.</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>object</b><span>jQuery Object</span></h4>
+ <p>DOM Container for zTree</p>
+ <h4 class="topLine"><b>zSetting</b><span>JSON</span></h4>
+ <p>zTree's configuration data, please refer to "setting details" in the API Document.</p>
+ <h4 class="topLine"><b>zNodes</b><span>Array(JSON) / JSON</span></h4>
+ <p>zTree's node data, please refer to "treeNode data details" in the API Document.</p>
+ <p class="highlight_red">1. zTree v3.x support to add single node, that is, if only to add one node, you can use JSON without using Array.</p>
+ <p class="highlight_red">2. If you need asynchronous load root nodes, can be set to null or [ ]</p>
+ <p class="highlight_red">3. If you use simple data mode, please refer to "setting.data.simpleData" in the API Document.</p>
+ <h4 class="topLine"><b>Return </b><span>JSON</span></h4>
+ <p>zTree object</p>
+ <p>This object can provide the methods of operate the zTree</p>
+ <p class="highlight_red">You can use $.fn.zTree.getZTreeObj method at any time to obtain.</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. create a simple tree</h4>
+ <pre xmlns=""><code><!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></code></pre>
+</div>
</div>
\ No newline at end of file |