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 | |
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')
162 files changed, 5263 insertions, 5263 deletions
diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/fn.zTree._z.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/fn.zTree._z.html index 61da261d..e57cc6a3 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/fn.zTree._z.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/fn.zTree._z.html @@ -1,13 +1,13 @@ -<div class="apiDetail"> -<div> - <h2><span>JSON</span><span class="path">$.fn.zTree.</span>_z</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>All of the methods in zTree v3.x are available through the '$. fn.zTree._z' calls, open it for you to develop your own zTree plug-ins.</p> - <p class="highlight_red">If you have no special requirements, please don't use this object, and don't modify the methods in this object.</p> - </div> - </div> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>JSON</span><span class="path">$.fn.zTree.</span>_z</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>All of the methods in zTree v3.x are available through the '$. fn.zTree._z' calls, open it for you to develop your own zTree plug-ins.</p>
+ <p class="highlight_red">If you have no special requirements, please don't use this object, and don't modify the methods in this object.</p>
+ </div>
+ </div>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/fn.zTree.destroy.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/fn.zTree.destroy.html index 3a316999..ba59ee96 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/fn.zTree.destroy.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/fn.zTree.destroy.html @@ -1,28 +1,28 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(treeId)</span><span class="path">$.fn.zTree.</span>destroy</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>From zTree v3.4, zTree support the method for destruction.</p> - <p>1. This method can destroy the zTree with specify treeId, and can destroy all of the zTrees.</p> - <p class="highlight_red">2. If you want to destory some one zTree, you can use the 'zTreeObj.destroy()' method.</p> - <p class="highlight_red">3. If you want to use the tree which has been destroyed, you must use the 'init()' method at first.</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier</p> - <p class="highlight_red">If this parameter is omitted, then will destroy all of the zTrees.</p> - <h4 class="topLine"><b>Return </b><span>none</span></h4> - <p>no return value</p> - </div> - <h3>Examples of function</h3> - <h4>1. destroy the zTree which its id is 'treeDemo'</h4> - <pre xmlns=""><code>$.fn.zTree.destroy("treeDemo");</code></pre> - <h4>2. destroy all of the zTrees</h4> - <pre xmlns=""><code>$.fn.zTree.destroy();</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(treeId)</span><span class="path">$.fn.zTree.</span>destroy</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>From zTree v3.4, zTree support the method for destruction.</p>
+ <p>1. This method can destroy the zTree with specify treeId, and can destroy all of the zTrees.</p>
+ <p class="highlight_red">2. If you want to destory some one zTree, you can use the 'zTreeObj.destroy()' method.</p>
+ <p class="highlight_red">3. If you want to use the tree which has been destroyed, you must use the 'init()' method at first.</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier</p>
+ <p class="highlight_red">If this parameter is omitted, then will destroy all of the zTrees.</p>
+ <h4 class="topLine"><b>Return </b><span>none</span></h4>
+ <p>no return value</p>
+ </div>
+ <h3>Examples of function</h3>
+ <h4>1. destroy the zTree which its id is 'treeDemo'</h4>
+ <pre xmlns=""><code>$.fn.zTree.destroy("treeDemo");</code></pre>
+ <h4>2. destroy all of the zTrees</h4>
+ <pre xmlns=""><code>$.fn.zTree.destroy();</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/fn.zTree.getZTreeObj.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/fn.zTree.getZTreeObj.html index 2bc04476..8137a272 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/fn.zTree.getZTreeObj.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/fn.zTree.getZTreeObj.html @@ -1,25 +1,25 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(treeId)</span><span class="path">$.fn.zTree.</span>getZTreeObj</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>zTree v3.x specifically provide the method which can use the tree's Id to get zTree object.</p> - <p class="highlight_red">Please initialize zTree first, then you can use this method.</p> - <p>Users don't need to set the global variable to hold the zTree object, and all of the callback will return 'treeId' parameters, the user can always use this method to get the zTree object.</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier</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> - </div> - <h3>Examples of function</h3> - <h4>1. Get the zTree object which id is 'tree'</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(treeId)</span><span class="path">$.fn.zTree.</span>getZTreeObj</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>zTree v3.x specifically provide the method which can use the tree's Id to get zTree object.</p>
+ <p class="highlight_red">Please initialize zTree first, then you can use this method.</p>
+ <p>Users don't need to set the global variable to hold the zTree object, and all of the callback will return 'treeId' parameters, the user can always use this method to get the zTree object.</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier</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>
+ </div>
+ <h3>Examples of function</h3>
+ <h4>1. Get the zTree object which id is 'tree'</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");</code></pre>
+</div>
</div>
\ No newline at end of file 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 diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.async.autoParam.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.async.autoParam.html index 85cd4691..83132893 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.async.autoParam.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.async.autoParam.html @@ -1,39 +1,39 @@ -<div class="apiDetail"> -<div> - <h2><span>Array(String)</span><span class="path">setting.async.</span>autoParam</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>Required automatically submit the parameters about the properties of the parent node, when the asynchronous load. It is valid when <span class="highlight_red">[setting.async.enable = true]</span></p> - <p>Default:[ ]</p> - </div> - </div> - <h3>Array(String) Format</h3> - <div class="desc"> - <p>1. Just save the attribute name of node to the array. For example: ["id", "name"]</p> - <p>2. You can change the parameter name. For example: server only accepts "zId" -- ["id=zId"]</p> - </div> - <h3>Examples of setting</h3> - <h4>1. set auto commit 'id' attribute</h4> - <pre xmlns=""><code>var setting = { - async: { - enable: true, - url: "http://host/getNode.php", - autoParam: ["id"] - } -}; -If have the parent node: {id:1, name:"test"}, When asynchronously load this parent node's child nodes, will be submitted parameters: id=1 -......</code></pre> - <h4>2. set auto commit 'id' attribute, but parameter name is 'zId'</h4> - <pre xmlns=""><code>var setting = { - async: { - enable: true, - url: "http://host/getNode.php", - autoParam: ["id=zId"] - } -}; -If have the parent node: {id:1, name:"test"}, When asynchronously load this parent node's child nodes, will be submitted parameters: zId=1 -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Array(String)</span><span class="path">setting.async.</span>autoParam</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>Required automatically submit the parameters about the properties of the parent node, when the asynchronous load. It is valid when <span class="highlight_red">[setting.async.enable = true]</span></p>
+ <p>Default:[ ]</p>
+ </div>
+ </div>
+ <h3>Array(String) Format</h3>
+ <div class="desc">
+ <p>1. Just save the attribute name of node to the array. For example: ["id", "name"]</p>
+ <p>2. You can change the parameter name. For example: server only accepts "zId" -- ["id=zId"]</p>
+ </div>
+ <h3>Examples of setting</h3>
+ <h4>1. set auto commit 'id' attribute</h4>
+ <pre xmlns=""><code>var setting = {
+ async: {
+ enable: true,
+ url: "http://host/getNode.php",
+ autoParam: ["id"]
+ }
+};
+If have the parent node: {id:1, name:"test"}, When asynchronously load this parent node's child nodes, will be submitted parameters: id=1
+......</code></pre>
+ <h4>2. set auto commit 'id' attribute, but parameter name is 'zId'</h4>
+ <pre xmlns=""><code>var setting = {
+ async: {
+ enable: true,
+ url: "http://host/getNode.php",
+ autoParam: ["id=zId"]
+ }
+};
+If have the parent node: {id:1, name:"test"}, When asynchronously load this parent node's child nodes, will be submitted parameters: zId=1
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.async.contentType.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.async.contentType.html index cc9bfcd3..c29942f0 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.async.contentType.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.async.contentType.html @@ -1,29 +1,29 @@ -<div class="apiDetail"> -<div> - <h2><span>String</span><span class="path">setting.async.</span>contentType</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>When Ajax sending data to the server, use this content-type. It is valid when <span class="highlight_red">[setting.async.enable = true]</span></p> - <p>Default:"application/x-www-form-urlencoded"</p> - </div> - </div> - <h3>String Format</h3> - <div class="desc"> - <p> contentType = "application/x-www-form-urlencoded", means: the sending data format is "form" format.</p> - <p> contentType = "application/json", means: the sending data format is "json" format. (for .Net)</p> - </div> - <h3>Examples of setting</h3> - <h4>1. set the sending data format to "json" format.</h4> - <pre xmlns=""><code>var setting = { - async: { - enable: true, - contentType: "application/json", - url: "http://host/getNode.php", - autoParam: ["id", "name"] - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>String</span><span class="path">setting.async.</span>contentType</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>When Ajax sending data to the server, use this content-type. It is valid when <span class="highlight_red">[setting.async.enable = true]</span></p>
+ <p>Default:"application/x-www-form-urlencoded"</p>
+ </div>
+ </div>
+ <h3>String Format</h3>
+ <div class="desc">
+ <p> contentType = "application/x-www-form-urlencoded", means: the sending data format is "form" format.</p>
+ <p> contentType = "application/json", means: the sending data format is "json" format. (for .Net)</p>
+ </div>
+ <h3>Examples of setting</h3>
+ <h4>1. set the sending data format to "json" format.</h4>
+ <pre xmlns=""><code>var setting = {
+ async: {
+ enable: true,
+ contentType: "application/json",
+ url: "http://host/getNode.php",
+ autoParam: ["id", "name"]
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.async.dataFilter.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.async.dataFilter.html index 34733e4d..fc59a6b6 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.async.dataFilter.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.async.dataFilter.html @@ -1,45 +1,45 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(treeId, parentNode, responseData)</span><span class="path">setting.async.</span>dataFilter</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>Function used to pre-process for the return data of Ajax. It is valid when <span class="highlight_red">[setting.async.enable = true]</span></p> - <p>Default: null</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p> - <h4 class="topLine"><b>parentNode</b><span>JSON</span></h4> - <p>Parent node's JSON data object</p> - <p class="highlight_red">When asynchronously loading the root, the parentNode = null</p> - <h4 class="topLine"><b>responseData</b><span>Array(JSON) / JSON / String</span></h4> - <p>Ajax got Array (JSON) / JSON / String data objects</p> - <p class="highlight_red">From v3.4, support the string with XML format.</p> - <h4 class="topLine"><b>Return </b><span>Array(JSON) / JSON</span></h4> - <p>The return value should be the JSON data structure which is supported by the zTree.</p> - <p class="highlight_red">v3.x supports to load single node JSON data object.</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. Modify the node name attribute which is ajax got.</h4> - <pre xmlns=""><code>function ajaxDataFilter(treeId, parentNode, responseData) { - if (responseData) { - for(var i =0; i < responseData.length; i++) { - responseData[i].name += "_filter"; - } - } - return responseData; -}; -var setting = { - async: { - enable: true, - url: "http://host/getNode.php", - dataFilter: ajaxDataFilter - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(treeId, parentNode, responseData)</span><span class="path">setting.async.</span>dataFilter</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>Function used to pre-process for the return data of Ajax. It is valid when <span class="highlight_red">[setting.async.enable = true]</span></p>
+ <p>Default: null</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
+ <h4 class="topLine"><b>parentNode</b><span>JSON</span></h4>
+ <p>Parent node's JSON data object</p>
+ <p class="highlight_red">When asynchronously loading the root, the parentNode = null</p>
+ <h4 class="topLine"><b>responseData</b><span>Array(JSON) / JSON / String</span></h4>
+ <p>Ajax got Array (JSON) / JSON / String data objects</p>
+ <p class="highlight_red">From v3.4, support the string with XML format.</p>
+ <h4 class="topLine"><b>Return </b><span>Array(JSON) / JSON</span></h4>
+ <p>The return value should be the JSON data structure which is supported by the zTree.</p>
+ <p class="highlight_red">v3.x supports to load single node JSON data object.</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. Modify the node name attribute which is ajax got.</h4>
+ <pre xmlns=""><code>function ajaxDataFilter(treeId, parentNode, responseData) {
+ if (responseData) {
+ for(var i =0; i < responseData.length; i++) {
+ responseData[i].name += "_filter";
+ }
+ }
+ return responseData;
+};
+var setting = {
+ async: {
+ enable: true,
+ url: "http://host/getNode.php",
+ dataFilter: ajaxDataFilter
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.async.dataType.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.async.dataType.html index e6672e9b..0a07cb83 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.async.dataType.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.async.dataType.html @@ -1,29 +1,29 @@ -<div class="apiDetail"> -<div> - <h2><span>String</span><span class="path">setting.async.</span>dataType</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 data type of Ajax. It is valid when <span class="highlight_red">[setting.async.enable = true]</span></p> - <p>Default:"text"</p> - </div> - </div> - <h3>String Format</h3> - <div class="desc"> - <p> dataType = "text", It can meet most of the needs.</p> - <p class="highlight_red">The 'dataType' in zTree and jQuery's ajax is same.</p> - </div> - <h3>Examples of setting</h3> - <h4>1. Set the dataType which ajax got is text.</h4> - <pre xmlns=""><code>var setting = { - async: { - enable: true, - dataType: "text", - url: "http://host/getNode.php", - autoParam: ["id", "name"] - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>String</span><span class="path">setting.async.</span>dataType</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 data type of Ajax. It is valid when <span class="highlight_red">[setting.async.enable = true]</span></p>
+ <p>Default:"text"</p>
+ </div>
+ </div>
+ <h3>String Format</h3>
+ <div class="desc">
+ <p> dataType = "text", It can meet most of the needs.</p>
+ <p class="highlight_red">The 'dataType' in zTree and jQuery's ajax is same.</p>
+ </div>
+ <h3>Examples of setting</h3>
+ <h4>1. Set the dataType which ajax got is text.</h4>
+ <pre xmlns=""><code>var setting = {
+ async: {
+ enable: true,
+ dataType: "text",
+ url: "http://host/getNode.php",
+ autoParam: ["id", "name"]
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.async.enable.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.async.enable.html index 806ba6c6..f834ba47 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.async.enable.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.async.enable.html @@ -1,30 +1,30 @@ -<div class="apiDetail"> -<div> - <h2><span>Boolean</span><span class="path">setting.async.</span>enable</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>Set zTree asynchronous loading mode is turned on or off.</p> - <p>Default: false</p> - </div> - </div> - <h3>Boolean Format</h3> - <div class="desc"> - <p> true - turn on asynchronous loading mode</p> - <p> false - turn off asynchronous loading mode</p> - <p class="highlight_red">If set it is true, you must set attributes in setting.async</p> - <p class="highlight_red">If you don't pass 'treeNodes' parameter when initialize zTree, the root nodes will get by ajax.</p> - </div> - <h3>Examples of setting</h3> - <h4>1. Turn on asynchronous loading mode</h4> - <pre xmlns=""><code>var setting = { - async: { - enable: true, - url: "http://host/getNode.php", - autoParam: ["id", "name"] - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Boolean</span><span class="path">setting.async.</span>enable</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>Set zTree asynchronous loading mode is turned on or off.</p>
+ <p>Default: false</p>
+ </div>
+ </div>
+ <h3>Boolean Format</h3>
+ <div class="desc">
+ <p> true - turn on asynchronous loading mode</p>
+ <p> false - turn off asynchronous loading mode</p>
+ <p class="highlight_red">If set it is true, you must set attributes in setting.async</p>
+ <p class="highlight_red">If you don't pass 'treeNodes' parameter when initialize zTree, the root nodes will get by ajax.</p>
+ </div>
+ <h3>Examples of setting</h3>
+ <h4>1. Turn on asynchronous loading mode</h4>
+ <pre xmlns=""><code>var setting = {
+ async: {
+ enable: true,
+ url: "http://host/getNode.php",
+ autoParam: ["id", "name"]
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.async.otherParam.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.async.otherParam.html index 2e37390a..4664e605 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.async.otherParam.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.async.otherParam.html @@ -1,40 +1,40 @@ -<div class="apiDetail"> -<div> - <h2><span>Array(String) / JSON</span><span class="path">setting.async.</span>otherParam</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 static parameters of the Ajax request. (key - value) It is valid when <span class="highlight_red">[setting.async.enable = true]</span></p> - <p>Default: [ ]</p> - </div> - </div> - <h3>Array(String) Format</h3> - <div class="desc"> - <p>Can be empty array. e.g. [ ]. If set key, you must set value, e.g. [key, value]. ([key] or [key, value, key] is wrong!!)</p> - </div> - <h3>JSON Format</h3> - <div class="desc"> - <p>Use JSON data format set the key-value. e.g. { key1:value1, key2:value2 }</p> - </div> - <h3>Examples of setting</h3> - <h4>1. Use Array(String) Format</h4> - <pre xmlns=""><code>var setting = { - async: { - enable: true, - url: "http://host/getNode.php", - otherParam: ["id", "1", "name", "test"] - } -}; -when zTree send ajax, the parameters will has: id=1&name=test</code></pre> - <h4>2. Use JSON data Format</h4> - <pre xmlns=""><code>var setting = { - async: { - enable: true, - url: "http://host/getNode.php", - otherParam: { "id":"1", "name":"test"} - } -}; -when zTree send ajax, the parameters will has: id=1&name=test</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Array(String) / JSON</span><span class="path">setting.async.</span>otherParam</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 static parameters of the Ajax request. (key - value) It is valid when <span class="highlight_red">[setting.async.enable = true]</span></p>
+ <p>Default: [ ]</p>
+ </div>
+ </div>
+ <h3>Array(String) Format</h3>
+ <div class="desc">
+ <p>Can be empty array. e.g. [ ]. If set key, you must set value, e.g. [key, value]. ([key] or [key, value, key] is wrong!!)</p>
+ </div>
+ <h3>JSON Format</h3>
+ <div class="desc">
+ <p>Use JSON data format set the key-value. e.g. { key1:value1, key2:value2 }</p>
+ </div>
+ <h3>Examples of setting</h3>
+ <h4>1. Use Array(String) Format</h4>
+ <pre xmlns=""><code>var setting = {
+ async: {
+ enable: true,
+ url: "http://host/getNode.php",
+ otherParam: ["id", "1", "name", "test"]
+ }
+};
+when zTree send ajax, the parameters will has: id=1&name=test</code></pre>
+ <h4>2. Use JSON data Format</h4>
+ <pre xmlns=""><code>var setting = {
+ async: {
+ enable: true,
+ url: "http://host/getNode.php",
+ otherParam: { "id":"1", "name":"test"}
+ }
+};
+when zTree send ajax, the parameters will has: id=1&name=test</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.async.type.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.async.type.html index ae543388..1d3064df 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.async.type.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.async.type.html @@ -1,30 +1,30 @@ -<div class="apiDetail"> -<div> - <h2><span>String</span><span class="path">setting.async.</span>type</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>Http request mode in ajax. It is valid when <span class="highlight_red">[setting.async.enable = true]</span></p> - <p>Defalut: "post"</p> - </div> - </div> - <h3>String Format</h3> - <div class="desc"> - <p> "post" - http request mode</p> - <p> "get" - http request mode</p> - <p class="highlight_red">The 'type' in zTree and jQuery's ajax is same.</p> - </div> - <h3>Examples of setting</h3> - <h4>1. Set http request mode is 'get'</h4> - <pre xmlns=""><code>var setting = { - async: { - enable: true, - type: "get", - url: "http://host/getNode.php", - autoParam: ["id", "name"] - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>String</span><span class="path">setting.async.</span>type</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>Http request mode in ajax. It is valid when <span class="highlight_red">[setting.async.enable = true]</span></p>
+ <p>Defalut: "post"</p>
+ </div>
+ </div>
+ <h3>String Format</h3>
+ <div class="desc">
+ <p> "post" - http request mode</p>
+ <p> "get" - http request mode</p>
+ <p class="highlight_red">The 'type' in zTree and jQuery's ajax is same.</p>
+ </div>
+ <h3>Examples of setting</h3>
+ <h4>1. Set http request mode is 'get'</h4>
+ <pre xmlns=""><code>var setting = {
+ async: {
+ enable: true,
+ type: "get",
+ url: "http://host/getNode.php",
+ autoParam: ["id", "name"]
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.async.url.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.async.url.html index 5587f294..a194e5b7 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.async.url.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.async.url.html @@ -1,50 +1,50 @@ -<div class="apiDetail"> -<div> - <h2><span>String / Function(treeId, treeNode)</span><span class="path">setting.async.</span>url</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 URL to which the ajax request is sent. It is valid when <span class="highlight_red">[setting.async.enable = true]</span></p> - <p>Default: ""</p> - </div> - </div> - <h3>String Format</h3> - <div class="desc"> - <p>A url string(e.g. "http://www.domain.com"). Note: please ensure that the url can be loaded</p> - <p class="highlight_red">Url can also take parameters, please note that transcode.</p> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p> - <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> - <p>Parent node's JSON data object</p> - <p class="highlight_red">When asynchronously loading the root, the treeNode = null</p> - <h4 class="topLine"><b>Return </b><span>String</span></h4> - <p>Return value is same as 'String Format'</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. set ajax url is "nodes.php"</h4> - <pre xmlns=""><code>var setting = { - async: { - enable: true, - url: "nodes.php", - autoParam: ["id", "name"] - } -}; -......</code></pre> - <h4>2. set ajax url is "function"</h4> - <pre xmlns=""><code>function getAsyncUrl(treeId, treeNode) { - return treeNode.isParent ? "nodes1.php" : "nodes2.php"; -}; -var setting = { - async: { - enable: true, - url: getAsyncUrl, - autoParam: ["id", "name"] - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>String / Function(treeId, treeNode)</span><span class="path">setting.async.</span>url</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 URL to which the ajax request is sent. It is valid when <span class="highlight_red">[setting.async.enable = true]</span></p>
+ <p>Default: ""</p>
+ </div>
+ </div>
+ <h3>String Format</h3>
+ <div class="desc">
+ <p>A url string(e.g. "http://www.domain.com"). Note: please ensure that the url can be loaded</p>
+ <p class="highlight_red">Url can also take parameters, please note that transcode.</p>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
+ <p>Parent node's JSON data object</p>
+ <p class="highlight_red">When asynchronously loading the root, the treeNode = null</p>
+ <h4 class="topLine"><b>Return </b><span>String</span></h4>
+ <p>Return value is same as 'String Format'</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. set ajax url is "nodes.php"</h4>
+ <pre xmlns=""><code>var setting = {
+ async: {
+ enable: true,
+ url: "nodes.php",
+ autoParam: ["id", "name"]
+ }
+};
+......</code></pre>
+ <h4>2. set ajax url is "function"</h4>
+ <pre xmlns=""><code>function getAsyncUrl(treeId, treeNode) {
+ return treeNode.isParent ? "nodes1.php" : "nodes2.php";
+};
+var setting = {
+ async: {
+ enable: true,
+ url: getAsyncUrl,
+ autoParam: ["id", "name"]
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeAsync.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeAsync.html index 6563ff29..79557036 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeAsync.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeAsync.html @@ -1,35 +1,35 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeAsync</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>Used to capture the event before zTree execute ajax, zTree based on return value to determine whether to execute ajax.</p> - <p>Default: null</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p> - <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the parent node</p> - <p class="highlight_red">When asynchronously loading the root, the treeNode = null</p> - <h4 class="topLine"><b>Return </b><span>Boolean</span></h4> - <p>return true or false</p> - <p class="highlight_red">If return false, zTree will not execute ajax, and will not trigger the 'onAsyncSuccess / onAsyncError' callback.</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. If the parent node's attribute 'id' is 1, zTree will not execute ajax.</h4> - <pre xmlns=""><code>function zTreeBeforeAsync(treeId, treeNode) { - return (treeNode.id !== 1); -}; -var setting = { - callback: { - beforeAsync: zTreeBeforeAsync - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeAsync</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>Used to capture the event before zTree execute ajax, zTree based on return value to determine whether to execute ajax.</p>
+ <p>Default: null</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the parent node</p>
+ <p class="highlight_red">When asynchronously loading the root, the treeNode = null</p>
+ <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
+ <p>return true or false</p>
+ <p class="highlight_red">If return false, zTree will not execute ajax, and will not trigger the 'onAsyncSuccess / onAsyncError' callback.</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. If the parent node's attribute 'id' is 1, zTree will not execute ajax.</h4>
+ <pre xmlns=""><code>function zTreeBeforeAsync(treeId, treeNode) {
+ return (treeNode.id !== 1);
+};
+var setting = {
+ callback: {
+ beforeAsync: zTreeBeforeAsync
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeCheck.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeCheck.html index 5260412b..f5b2763b 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeCheck.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeCheck.html @@ -1,34 +1,34 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeCheck</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>Used to capture the event before check or uncheck node, zTree based on return value to determine whether to change check state.</p> - <p>Default: null</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p> - <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which is checked or unchecked</p> - <h4 class="topLine"><b>Return </b><span>Boolean</span></h4> - <p>return true or false</p> - <p class="highlight_red">If return false, zTree will not change check state, and will not trigger the 'onCheck' callback.</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. disable to change check state of all nodes, and keep the check state initialization</h4> - <pre xmlns=""><code>function zTreeBeforeCheck(treeId, treeNode) { - return false; -}; -var setting = { - callback: { - beforeCheck: zTreeBeforeCheck - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeCheck</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>Used to capture the event before check or uncheck node, zTree based on return value to determine whether to change check state.</p>
+ <p>Default: null</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which is checked or unchecked</p>
+ <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
+ <p>return true or false</p>
+ <p class="highlight_red">If return false, zTree will not change check state, and will not trigger the 'onCheck' callback.</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. disable to change check state of all nodes, and keep the check state initialization</h4>
+ <pre xmlns=""><code>function zTreeBeforeCheck(treeId, treeNode) {
+ return false;
+};
+var setting = {
+ callback: {
+ beforeCheck: zTreeBeforeCheck
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeClick.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeClick.html index 32ddbf77..8a347e87 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeClick.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeClick.html @@ -1,49 +1,49 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(treeId, treeNode, clickFlag)</span><span class="path">setting.callback.</span>beforeClick</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>Used to capture the event before click node, zTree based on return value to determine whether to trigger the 'onClick' callback.</p> - <p>Default: null</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p> - <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which is clicked</p> - <h4 class="topLine"><b>clickFlag</b><span>Number</span></h4> - <p>Node is selected or deselected state, please see table below for details</p> - <table width="100%" border="0" cellspacing="1" cellpadding="0"> - <thead><tr><td>clickFlag</td><td title="Whether to allow multi-select">selectedMulti</td><td title="Whether to press Ctrl-key or Cmd-key">autoCancelSelected<br/>&&<br/>event.ctrlKey / metaKey</td><td title="Node's selection state">isSelected</td><td>operate for selected</td></tr></thead> - <tbody> - <tr><td>1</td><td>true</td><td>false</td><td>false</td><td>node is selected (single)</td></tr> - <tr><td>1</td><td>true</td><td>false</td><td>true</td><td>node is selected (single)</td></tr> - <tr><td>2</td><td>true</td><td>true</td><td>false</td><td>node is selected (multi)</td></tr> - <tr><td>0</td><td>true</td><td>true</td><td>true</td><td>node is deselected</td></tr> - <tr><td>1</td><td>false</td><td>false</td><td>false</td><td>node is selected (single)</td></tr> - <tr><td>1</td><td>false</td><td>false</td><td>true</td><td>node is selected (single)</td></tr> - <tr><td>1</td><td>false</td><td>true</td><td>false</td><td>node is selected (single)</td></tr> - <tr><td>0</td><td>false</td><td>true</td><td>true</td><td>node is deselected</td></tr> - </tbody> - </table> - <h4 class="topLine"><b>Return </b><span>Boolean</span></h4> - <p>return true or false</p> - <p class="highlight_red">If return false, zTree will not change selected state, and will not trigger the 'onClick' callback.</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. disabled to click the node</h4> - <pre xmlns=""><code>function zTreeBeforeClick(treeId, treeNode, clickFlag) { - return (treeNode.id !== 1); -}; -var setting = { - callback: { - beforeClick: zTreeBeforeClick - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(treeId, treeNode, clickFlag)</span><span class="path">setting.callback.</span>beforeClick</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>Used to capture the event before click node, zTree based on return value to determine whether to trigger the 'onClick' callback.</p>
+ <p>Default: null</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which is clicked</p>
+ <h4 class="topLine"><b>clickFlag</b><span>Number</span></h4>
+ <p>Node is selected or deselected state, please see table below for details</p>
+ <table width="100%" border="0" cellspacing="1" cellpadding="0">
+ <thead><tr><td>clickFlag</td><td title="Whether to allow multi-select">selectedMulti</td><td title="Whether to press Ctrl-key or Cmd-key">autoCancelSelected<br/>&&<br/>event.ctrlKey / metaKey</td><td title="Node's selection state">isSelected</td><td>operate for selected</td></tr></thead>
+ <tbody>
+ <tr><td>1</td><td>true</td><td>false</td><td>false</td><td>node is selected (single)</td></tr>
+ <tr><td>1</td><td>true</td><td>false</td><td>true</td><td>node is selected (single)</td></tr>
+ <tr><td>2</td><td>true</td><td>true</td><td>false</td><td>node is selected (multi)</td></tr>
+ <tr><td>0</td><td>true</td><td>true</td><td>true</td><td>node is deselected</td></tr>
+ <tr><td>1</td><td>false</td><td>false</td><td>false</td><td>node is selected (single)</td></tr>
+ <tr><td>1</td><td>false</td><td>false</td><td>true</td><td>node is selected (single)</td></tr>
+ <tr><td>1</td><td>false</td><td>true</td><td>false</td><td>node is selected (single)</td></tr>
+ <tr><td>0</td><td>false</td><td>true</td><td>true</td><td>node is deselected</td></tr>
+ </tbody>
+ </table>
+ <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
+ <p>return true or false</p>
+ <p class="highlight_red">If return false, zTree will not change selected state, and will not trigger the 'onClick' callback.</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. disabled to click the node</h4>
+ <pre xmlns=""><code>function zTreeBeforeClick(treeId, treeNode, clickFlag) {
+ return (treeNode.id !== 1);
+};
+var setting = {
+ callback: {
+ beforeClick: zTreeBeforeClick
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeCollapse.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeCollapse.html index b2713e8a..59fa4b3a 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeCollapse.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeCollapse.html @@ -1,34 +1,34 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeCollapse</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>Used to capture the event before collapse node, zTree based on return value to determine whether to collapse node.</p> - <p>Default: null</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p> - <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which will be collapsed</p> - <h4 class="topLine"><b>Return </b><span>Boolean</span></h4> - <p>return true or false</p> - <p class="highlight_red">If return false, zTree will not collapse node, and will not trigger the 'onCollapse' callback.</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. disabled to collapse node which is expanded</h4> - <pre xmlns=""><code>function zTreeBeforeCollapse(treeId, treeNode) { - return false; -}; -var setting = { - callback: { - beforeCollapse: zTreeBeforeCollapse - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeCollapse</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>Used to capture the event before collapse node, zTree based on return value to determine whether to collapse node.</p>
+ <p>Default: null</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which will be collapsed</p>
+ <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
+ <p>return true or false</p>
+ <p class="highlight_red">If return false, zTree will not collapse node, and will not trigger the 'onCollapse' callback.</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. disabled to collapse node which is expanded</h4>
+ <pre xmlns=""><code>function zTreeBeforeCollapse(treeId, treeNode) {
+ return false;
+};
+var setting = {
+ callback: {
+ beforeCollapse: zTreeBeforeCollapse
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeDblClick.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeDblClick.html index 6f1c743e..8dc258df 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeDblClick.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeDblClick.html @@ -1,36 +1,36 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeDblClick</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>Used to capture the dblclick event before the 'onDblClick' callback, zTree based on return value to determine whether to trigger the 'onDblClick' callback.</p> - <p>Default: null</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p> - <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which is double clicked</p> - <p class="highlight_red">If the DOM which dblclicked isn't a node, it will return null.</p> - <h4 class="topLine"><b>Return </b><span>Boolean</span></h4> - <p>return true or false</p> - <p class="highlight_red">If return false, ztree will not trigger the 'onDblClick' callback, no effect on other operations.</p> - <p class="highlight_red">This callback function does not affect the dblclick the parent node to auto expand, please refer to setting.view.dblClickExpand properties.</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. disable to trigger the 'onDblClick' callback</h4> - <pre xmlns=""><code>function zTreeBeforeDblClick(treeId, treeNode) { - return false; -}; -var setting = { - callback: { - beforeDblClick: zTreeBeforeDblClick - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeDblClick</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>Used to capture the dblclick event before the 'onDblClick' callback, zTree based on return value to determine whether to trigger the 'onDblClick' callback.</p>
+ <p>Default: null</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which is double clicked</p>
+ <p class="highlight_red">If the DOM which dblclicked isn't a node, it will return null.</p>
+ <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
+ <p>return true or false</p>
+ <p class="highlight_red">If return false, ztree will not trigger the 'onDblClick' callback, no effect on other operations.</p>
+ <p class="highlight_red">This callback function does not affect the dblclick the parent node to auto expand, please refer to setting.view.dblClickExpand properties.</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. disable to trigger the 'onDblClick' callback</h4>
+ <pre xmlns=""><code>function zTreeBeforeDblClick(treeId, treeNode) {
+ return false;
+};
+var setting = {
+ callback: {
+ beforeDblClick: zTreeBeforeDblClick
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeDrag.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeDrag.html index 51752448..887114bc 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeDrag.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeDrag.html @@ -1,39 +1,39 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(treeId, treeNodes)</span><span class="path">setting.callback.</span>beforeDrag</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>Used to capture the event before drag node, zTree based on return value to determine whether to start to drag node.</p> - <p>Default: null</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, the tree is what the treeNodes are belong to, easy for users to control.</p> - <h4 class="topLine"><b>treeNodes</b><span>Array(JSON)</span></h4> - <p>A collection of the nodes which will be dragged</p> - <p class="highlight_red">v3.x allows drag and drop multiple sibling nodes, so this parameter is modified to Array(JSON).</p> - <p class="highlight_red">If the selected nodes aren't the sibling nodes, you can only drag one node which mouse over.</p> - <h4 class="topLine"><b>Return </b><span>Boolean</span></h4> - <p>return true or false</p> - <p class="highlight_red">If return false, zTree will stop drag, and will not trigger the 'onDrag / beforeDrop / onDrop' callback.</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. disable to drag all node</h4> - <pre xmlns=""><code>function zTreeBeforeDrag(treeId, treeNodes) { - return false; -}; -var setting = { - edit: { - enable: true - }, - callback: { - beforeDrag: zTreeBeforeDrag - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(treeId, treeNodes)</span><span class="path">setting.callback.</span>beforeDrag</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>Used to capture the event before drag node, zTree based on return value to determine whether to start to drag node.</p>
+ <p>Default: null</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, the tree is what the treeNodes are belong to, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNodes</b><span>Array(JSON)</span></h4>
+ <p>A collection of the nodes which will be dragged</p>
+ <p class="highlight_red">v3.x allows drag and drop multiple sibling nodes, so this parameter is modified to Array(JSON).</p>
+ <p class="highlight_red">If the selected nodes aren't the sibling nodes, you can only drag one node which mouse over.</p>
+ <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
+ <p>return true or false</p>
+ <p class="highlight_red">If return false, zTree will stop drag, and will not trigger the 'onDrag / beforeDrop / onDrop' callback.</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. disable to drag all node</h4>
+ <pre xmlns=""><code>function zTreeBeforeDrag(treeId, treeNodes) {
+ return false;
+};
+var setting = {
+ edit: {
+ enable: true
+ },
+ callback: {
+ beforeDrag: zTreeBeforeDrag
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeDragOpen.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeDragOpen.html index ed1ae978..b6476cfc 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeDragOpen.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeDragOpen.html @@ -1,37 +1,37 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeDragOpen</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>Used to capture the event when drag node to collapsed parent node, zTree based on return value to determine whether to auto expand parent node.</p> - <p>Default: null</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, the tree is what the treeNode(parent node) is belong to, easy for users to control.</p> - <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the parent node which will be auto expanded</p> - <h4 class="topLine"><b>Return </b><span>Boolean</span></h4> - <p>return true or false</p> - <p class="highlight_red">If return false, zTree will not auto expand parent node.</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. disable to auto expand parent node.</h4> - <pre xmlns=""><code>function zTreeBeforeDragOpen(treeId, treeNode) { - return false; -}; -var setting = { - edit: { - enable: true - }, - callback: { - beforeDragOpen: zTreeBeforeDragOpen - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeDragOpen</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>Used to capture the event when drag node to collapsed parent node, zTree based on return value to determine whether to auto expand parent node.</p>
+ <p>Default: null</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, the tree is what the treeNode(parent node) is belong to, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the parent node which will be auto expanded</p>
+ <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
+ <p>return true or false</p>
+ <p class="highlight_red">If return false, zTree will not auto expand parent node.</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. disable to auto expand parent node.</h4>
+ <pre xmlns=""><code>function zTreeBeforeDragOpen(treeId, treeNode) {
+ return false;
+};
+var setting = {
+ edit: {
+ enable: true
+ },
+ callback: {
+ beforeDragOpen: zTreeBeforeDragOpen
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeDrop.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeDrop.html index 70143211..79a602c2 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeDrop.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeDrop.html @@ -1,50 +1,50 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(treeId, treeNodes, targetNode, moveType, isCopy)</span><span class="path">setting.callback.</span>beforeDrop</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>Used to capture the event before drag-drop node, zTree based on return value to determine whether to allow drag-drop node.</p> - <p>Default: null</p> - <p class="highlight_red">When drop the nodes, if the dragged nodes is not in a valid location, this callback will not triggered, and will restore the original position.</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, the tree is what the targetNode is belong to, easy for users to control.</p> - <h4 class="topLine"><b>treeNodes</b><span>Array(JSON)</span></h4> - <p>A collection of the nodes which has been dragged</p> - <p class="highlight_red">The treeNodes are the data of the nodes which has been dragged, when copy nodes or move nodes.</p> - <h4 class="topLine"><b>targetNode</b><span>JSON</span></h4> - <p>JSON data object of the target node which treeNodes are drag-dropped.</p> - <p class="highlight_red">If the treeNodes will be root node, the targetNode = null</p> - <h4 class="topLine"><b>moveType</b><span>String</span></h4> - <p>the relative position of move to the target node</p> - <p class="highlight_red">"inner": will be child of targetNode</p> - <p class="highlight_red">"prev": will be sibling node, and be in front of targetNode</p> - <p class="highlight_red">"next": will be sibling node, and be behind targetNode</p> - <h4 class="topLine"><b>isCopy</b><span>Boolean</span></h4> - <p>the flag used to judge copy node or move node</p> - <p class="highlight_red">true: copy node; false: move node</p> - <h4 class="topLine"><b>Return </b><span>Boolean</span></h4> - <p>return true or false</p> - <p class="highlight_red">If return false, zTree will restore the dragged nodes, and will not trigger the 'onDrop' callback.</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. disable to drag nodes to root</h4> - <pre xmlns=""><code>function zTreeBeforeDrop(treeId, treeNodes, targetNode, moveType) { - return !(targetNode == null || (moveType != "inner" && !targetNode.parentTId)); -}; -var setting = { - edit: { - enable: true - }, - callback: { - beforeDrop: zTreeBeforeDrop - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(treeId, treeNodes, targetNode, moveType, isCopy)</span><span class="path">setting.callback.</span>beforeDrop</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>Used to capture the event before drag-drop node, zTree based on return value to determine whether to allow drag-drop node.</p>
+ <p>Default: null</p>
+ <p class="highlight_red">When drop the nodes, if the dragged nodes is not in a valid location, this callback will not triggered, and will restore the original position.</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, the tree is what the targetNode is belong to, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNodes</b><span>Array(JSON)</span></h4>
+ <p>A collection of the nodes which has been dragged</p>
+ <p class="highlight_red">The treeNodes are the data of the nodes which has been dragged, when copy nodes or move nodes.</p>
+ <h4 class="topLine"><b>targetNode</b><span>JSON</span></h4>
+ <p>JSON data object of the target node which treeNodes are drag-dropped.</p>
+ <p class="highlight_red">If the treeNodes will be root node, the targetNode = null</p>
+ <h4 class="topLine"><b>moveType</b><span>String</span></h4>
+ <p>the relative position of move to the target node</p>
+ <p class="highlight_red">"inner": will be child of targetNode</p>
+ <p class="highlight_red">"prev": will be sibling node, and be in front of targetNode</p>
+ <p class="highlight_red">"next": will be sibling node, and be behind targetNode</p>
+ <h4 class="topLine"><b>isCopy</b><span>Boolean</span></h4>
+ <p>the flag used to judge copy node or move node</p>
+ <p class="highlight_red">true: copy node; false: move node</p>
+ <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
+ <p>return true or false</p>
+ <p class="highlight_red">If return false, zTree will restore the dragged nodes, and will not trigger the 'onDrop' callback.</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. disable to drag nodes to root</h4>
+ <pre xmlns=""><code>function zTreeBeforeDrop(treeId, treeNodes, targetNode, moveType) {
+ return !(targetNode == null || (moveType != "inner" && !targetNode.parentTId));
+};
+var setting = {
+ edit: {
+ enable: true
+ },
+ callback: {
+ beforeDrop: zTreeBeforeDrop
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeEditName.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeEditName.html index 8772a3e9..d1d2b063 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeEditName.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeEditName.html @@ -1,38 +1,38 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeEditName</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>Used to capture the event before click edit button, zTree based on return value to determine whether to allow to edit the name.</p> - <p class="highlight_red">This callback is used to capture the event which edit button is clicked, then trigger the custom editing operation.</p> - <p>Default: null</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p> - <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which will be edited name.</p> - <h4 class="topLine"><b>Return </b><span>Boolean</span></h4> - <p>return true or false</p> - <p class="highlight_red">If return false, the node will not be able to edit the name.</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. disable to edit the parent node's name</h4> - <pre xmlns=""><code>function zTreeBeforeEditName(treeId, treeNode) { - return !treeNode.isParent; -} -var setting = { - edit: { - enable: true - }, - callback: { - beforeEditName: zTreeBeforeEditName - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeEditName</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>Used to capture the event before click edit button, zTree based on return value to determine whether to allow to edit the name.</p>
+ <p class="highlight_red">This callback is used to capture the event which edit button is clicked, then trigger the custom editing operation.</p>
+ <p>Default: null</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which will be edited name.</p>
+ <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
+ <p>return true or false</p>
+ <p class="highlight_red">If return false, the node will not be able to edit the name.</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. disable to edit the parent node's name</h4>
+ <pre xmlns=""><code>function zTreeBeforeEditName(treeId, treeNode) {
+ return !treeNode.isParent;
+}
+var setting = {
+ edit: {
+ enable: true
+ },
+ callback: {
+ beforeEditName: zTreeBeforeEditName
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeExpand.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeExpand.html index 73cf55a3..2bd43595 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeExpand.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeExpand.html @@ -1,34 +1,34 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeExpand</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>Used to capture the event before expand node, zTree based on return value to determine whether to expand node.</p> - <p>Default: null</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p> - <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which will be expanded</p> - <h4 class="topLine"><b>Return </b><span>Boolean</span></h4> - <p>return true or false</p> - <p class="highlight_red">If return false, zTree will not expand node, and will not trigger the 'onExpand' callback.</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. disabled to expand node which is collapsed</h4> - <pre xmlns=""><code>function zTreeBeforeExpand(treeId, treeNode) { - return false; -}; -var setting = { - callback: { - beforeExpand: zTreeBeforeExpand - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeExpand</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>Used to capture the event before expand node, zTree based on return value to determine whether to expand node.</p>
+ <p>Default: null</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which will be expanded</p>
+ <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
+ <p>return true or false</p>
+ <p class="highlight_red">If return false, zTree will not expand node, and will not trigger the 'onExpand' callback.</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. disabled to expand node which is collapsed</h4>
+ <pre xmlns=""><code>function zTreeBeforeExpand(treeId, treeNode) {
+ return false;
+};
+var setting = {
+ callback: {
+ beforeExpand: zTreeBeforeExpand
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeMouseDown.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeMouseDown.html index 4af0818b..60365d4a 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeMouseDown.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeMouseDown.html @@ -1,35 +1,35 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeMouseDown</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>Used to capture the mousedown event before the 'onMouseDown' callback, zTree based on return value to determine whether to trigger the 'onMouseDown' callback.</p> - <p>Default: null</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p> - <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which mouse over</p> - <p class="highlight_red">If the DOM which mouse over isn't a node, it will return null.</p> - <h4 class="topLine"><b>Return </b><span>Boolean</span></h4> - <p>return true or false</p> - <p class="highlight_red">If return false, zTree will not trigger the 'onMouseDown' callback, no effect on other operations.</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. disable to trigger the 'onMouseDown' callback</h4> - <pre xmlns=""><code>function zTreeBeforeMouseDown(treeId, treeNode) { - return false; -}; -var setting = { - callback: { - beforeMouseDown: zTreeBeforeMouseDown - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeMouseDown</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>Used to capture the mousedown event before the 'onMouseDown' callback, zTree based on return value to determine whether to trigger the 'onMouseDown' callback.</p>
+ <p>Default: null</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which mouse over</p>
+ <p class="highlight_red">If the DOM which mouse over isn't a node, it will return null.</p>
+ <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
+ <p>return true or false</p>
+ <p class="highlight_red">If return false, zTree will not trigger the 'onMouseDown' callback, no effect on other operations.</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. disable to trigger the 'onMouseDown' callback</h4>
+ <pre xmlns=""><code>function zTreeBeforeMouseDown(treeId, treeNode) {
+ return false;
+};
+var setting = {
+ callback: {
+ beforeMouseDown: zTreeBeforeMouseDown
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeMouseUp.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeMouseUp.html index 0c008fc4..4a4f4cd7 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeMouseUp.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeMouseUp.html @@ -1,35 +1,35 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeMouseUp</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>Used to capture the mouseup event before the 'onMouseUp' callback, zTree based on return value to determine whether to trigger the 'onMouseUp' callback.</p> - <p>Default: null</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p> - <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which mouse over</p> - <p class="highlight_red">If the DOM which mouse over isn't a node, it will return null.</p> - <h4 class="topLine"><b>Return </b><span>Boolean</span></h4> - <p>return true or false</p> - <p class="highlight_red">If return false, zTree will not trigger the 'onMouseUp' callback, no effect on other operations.</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. disable to trigger the 'onMouseUp' callback</h4> - <pre xmlns=""><code>function zTreeBeforeMouseUp(treeId, treeNode) { - return false; -}; -var setting = { - callback: { - beforeMouseUp: zTreeBeforeMouseUp - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeMouseUp</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>Used to capture the mouseup event before the 'onMouseUp' callback, zTree based on return value to determine whether to trigger the 'onMouseUp' callback.</p>
+ <p>Default: null</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which mouse over</p>
+ <p class="highlight_red">If the DOM which mouse over isn't a node, it will return null.</p>
+ <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
+ <p>return true or false</p>
+ <p class="highlight_red">If return false, zTree will not trigger the 'onMouseUp' callback, no effect on other operations.</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. disable to trigger the 'onMouseUp' callback</h4>
+ <pre xmlns=""><code>function zTreeBeforeMouseUp(treeId, treeNode) {
+ return false;
+};
+var setting = {
+ callback: {
+ beforeMouseUp: zTreeBeforeMouseUp
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeRemove.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeRemove.html index 38e14c19..4ca015d5 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeRemove.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeRemove.html @@ -1,37 +1,37 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeRemove</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>Used to capture the event before remove node, zTree based on return value to determine whether to allow to remove node.</p> - <p>Default: null</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p> - <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which will be removed.</p> - <h4 class="topLine"><b>Return </b><span>Boolean</span></h4> - <p>return true or false</p> - <p class="highlight_red">If return false, zTree will not remove node, and will not trigger the 'onRemove' callback.</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. disable to remove node</h4> - <pre xmlns=""><code>function zTreeBeforeRemove(treeId, treeNode) { - return false; -} -var setting = { - edit: { - enable: true - }, - callback: { - beforeRemove: zTreeBeforeRemove - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeRemove</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>Used to capture the event before remove node, zTree based on return value to determine whether to allow to remove node.</p>
+ <p>Default: null</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which will be removed.</p>
+ <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
+ <p>return true or false</p>
+ <p class="highlight_red">If return false, zTree will not remove node, and will not trigger the 'onRemove' callback.</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. disable to remove node</h4>
+ <pre xmlns=""><code>function zTreeBeforeRemove(treeId, treeNode) {
+ return false;
+}
+var setting = {
+ edit: {
+ enable: true
+ },
+ callback: {
+ beforeRemove: zTreeBeforeRemove
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeRename.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeRename.html index 76438a94..88e44f34 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeRename.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeRename.html @@ -1,46 +1,46 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(treeId, treeNode, newName, isCancel)</span><span class="path">setting.callback.</span>beforeRename</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>Used to capture the event before rename(when input DOM blur or press Enter Key), zTree based on return value to determine whether to allow to rename node.</p> - <p class="highlight_red">When node is editing name, press the ESC key to restore the original name and stop edit name.</p> - <p class="highlight_red">From v3.5.13, zTree will trigger this callback when user cancel edit name. please see 'isCancel' parameter.</p> - <p>Default: null</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p> - <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which will be rename.</p> - <h4 class="topLine"><b>newName</b><span>String</span></h4> - <p>the new name</p> - <h4 class="topLine"><b>isCancel</b><span>Boolean</span></h4> - <p>the status about cancel edit name (v3.5.13+)</p> - <p class="highlight_red">isCancel = true means: user cancel edit name. (press ESC or use cancelEditName() function)</p> - <p class="highlight_red">isCancel = false means: user submit edit name.</p> - <h4 class="topLine"><b>Return </b><span>Boolean</span></h4> - <p>return true or false</p> - <p class="highlight_red">If return false, the treeNode will keep the editing name, don't trigger the 'onRename' callback, and will ignore other enents, until the callback return true.</p> - <p class="highlight_red">If returns false, zTree will not set the input box to get focus to avoid the warning message which led to repeated triggering ‘beforeRename’ callback. Please use editName() method to set the input box to get focus when user close the warning message.</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. the length of the new name can't less than 5</h4> - <pre xmlns=""><code>function zTreeBeforeRename(treeId, treeNode, newName, isCancel) { - return newName.length > 5; -} -var setting = { - edit: { - enable: true - }, - callback: { - beforeRename: zTreeBeforeRename - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(treeId, treeNode, newName, isCancel)</span><span class="path">setting.callback.</span>beforeRename</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>Used to capture the event before rename(when input DOM blur or press Enter Key), zTree based on return value to determine whether to allow to rename node.</p>
+ <p class="highlight_red">When node is editing name, press the ESC key to restore the original name and stop edit name.</p>
+ <p class="highlight_red">From v3.5.13, zTree will trigger this callback when user cancel edit name. please see 'isCancel' parameter.</p>
+ <p>Default: null</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which will be rename.</p>
+ <h4 class="topLine"><b>newName</b><span>String</span></h4>
+ <p>the new name</p>
+ <h4 class="topLine"><b>isCancel</b><span>Boolean</span></h4>
+ <p>the status about cancel edit name (v3.5.13+)</p>
+ <p class="highlight_red">isCancel = true means: user cancel edit name. (press ESC or use cancelEditName() function)</p>
+ <p class="highlight_red">isCancel = false means: user submit edit name.</p>
+ <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
+ <p>return true or false</p>
+ <p class="highlight_red">If return false, the treeNode will keep the editing name, don't trigger the 'onRename' callback, and will ignore other enents, until the callback return true.</p>
+ <p class="highlight_red">If returns false, zTree will not set the input box to get focus to avoid the warning message which led to repeated triggering ‘beforeRename’ callback. Please use editName() method to set the input box to get focus when user close the warning message.</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. the length of the new name can't less than 5</h4>
+ <pre xmlns=""><code>function zTreeBeforeRename(treeId, treeNode, newName, isCancel) {
+ return newName.length > 5;
+}
+var setting = {
+ edit: {
+ enable: true
+ },
+ callback: {
+ beforeRename: zTreeBeforeRename
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeRightClick.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeRightClick.html index 15c38cd5..9ee73876 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeRightClick.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.beforeRightClick.html @@ -1,35 +1,35 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeRightClick</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>Used to capture the right click event before the 'onRightClick' callback, zTree based on return value to determine whether to trigger the 'onRightClick' callback.</p> - <p>Default: null</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p> - <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which is mouse right clicked</p> - <p class="highlight_red">If the DOM which mouse right clicked isn't a node, it will return null.</p> - <h4 class="topLine"><b>Return</b><span>Boolean</span></h4> - <p>return true or false</p> - <p class="highlight_red">If return false, ztree will not trigger the 'onRightClick' callback, no effect on other operations.</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. disable to trigger the 'onRightClick' callback</h4> - <pre xmlns=""><code>function zTreeBeforeRightClick(treeId, treeNode) { - return false; -}; -var setting = { - callback: { - beforeRightClick: zTreeBeforeRightClick - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeRightClick</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>Used to capture the right click event before the 'onRightClick' callback, zTree based on return value to determine whether to trigger the 'onRightClick' callback.</p>
+ <p>Default: null</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which is mouse right clicked</p>
+ <p class="highlight_red">If the DOM which mouse right clicked isn't a node, it will return null.</p>
+ <h4 class="topLine"><b>Return</b><span>Boolean</span></h4>
+ <p>return true or false</p>
+ <p class="highlight_red">If return false, ztree will not trigger the 'onRightClick' callback, no effect on other operations.</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. disable to trigger the 'onRightClick' callback</h4>
+ <pre xmlns=""><code>function zTreeBeforeRightClick(treeId, treeNode) {
+ return false;
+};
+var setting = {
+ callback: {
+ beforeRightClick: zTreeBeforeRightClick
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onAsyncError.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onAsyncError.html index 785c8d82..b2aaad0b 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onAsyncError.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onAsyncError.html @@ -1,42 +1,42 @@ -<div class="apiDetail"> -<div> - <h2><span class="path">setting.callback.</span>onAsyncError</h2> - <h2><span>Function(event, treeId, treeNode, XMLHttpRequest, textStatus, errorThrown)</span> </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>Used to capture the error event when execute ajax.</p> - <p class="highlight_red">If you set 'setting.callback.beforeAsync',and return false, zTree will not execute ajax, and will not trigger the 'onAsyncSuccess / onAsyncError' callback.</p> - <p>Default: null</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>event</b><span>js event Object</span></h4> - <p>event Object</p> - <h4 class="topLine"><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p> - <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the parent node</p> - <p class="highlight_red">When load root nodes, treeNode = null</p> - <h4 class="topLine"><b>XMLHttpRequest</b><span>String</span></h4> - <p>XMLHttpRequest Object, please refer to JQuery API documentation.</p> - <h4 class="topLine"><b>textStatus</b><span>String</span></h4> - <p>a string categorizing the status of the request("success", "error"...), please refer to JQuery API documentation.</p> - <h4 class="topLine"><b>errorThrown</b><span>String</span></h4> - <p>eWhen an HTTP error occurs, errorThrown receives the textual portion of the HTTP status, please refer to JQuery API documentation.</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. When execute ajax make error, alert message.</h4> - <pre xmlns=""><code>function zTreeOnAsyncError(event, treeId, treeNode, XMLHttpRequest, textStatus, errorThrown) { - alert(XMLHttpRequest); -}; -var setting = { - callback: { - onAsyncError: zTreeOnAsyncError - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span class="path">setting.callback.</span>onAsyncError</h2>
+ <h2><span>Function(event, treeId, treeNode, XMLHttpRequest, textStatus, errorThrown)</span> </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>Used to capture the error event when execute ajax.</p>
+ <p class="highlight_red">If you set 'setting.callback.beforeAsync',and return false, zTree will not execute ajax, and will not trigger the 'onAsyncSuccess / onAsyncError' callback.</p>
+ <p>Default: null</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>event</b><span>js event Object</span></h4>
+ <p>event Object</p>
+ <h4 class="topLine"><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the parent node</p>
+ <p class="highlight_red">When load root nodes, treeNode = null</p>
+ <h4 class="topLine"><b>XMLHttpRequest</b><span>String</span></h4>
+ <p>XMLHttpRequest Object, please refer to JQuery API documentation.</p>
+ <h4 class="topLine"><b>textStatus</b><span>String</span></h4>
+ <p>a string categorizing the status of the request("success", "error"...), please refer to JQuery API documentation.</p>
+ <h4 class="topLine"><b>errorThrown</b><span>String</span></h4>
+ <p>eWhen an HTTP error occurs, errorThrown receives the textual portion of the HTTP status, please refer to JQuery API documentation.</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. When execute ajax make error, alert message.</h4>
+ <pre xmlns=""><code>function zTreeOnAsyncError(event, treeId, treeNode, XMLHttpRequest, textStatus, errorThrown) {
+ alert(XMLHttpRequest);
+};
+var setting = {
+ callback: {
+ onAsyncError: zTreeOnAsyncError
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onAsyncSuccess.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onAsyncSuccess.html index 2722691f..0f281dd4 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onAsyncSuccess.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onAsyncSuccess.html @@ -1,38 +1,38 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(event, treeId, treeNode, msg)</span><span class="path">setting.callback.</span>onAsyncSuccess</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>Used to capture the complete success event when execute ajax.</p> - <p class="highlight_red">If you set 'setting.callback.beforeAsync',and return false, zTree will not execute ajax, and will not trigger the 'onAsyncSuccess / onAsyncError' callback.</p> - <p>Default: null</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>event</b><span>js event Object</span></h4> - <p>event Object</p> - <h4 class="topLine"><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p> - <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the parent node</p> - <p class="highlight_red">When load root nodes, treeNode = null</p> - <h4 class="topLine"><b>msg</b><span>String / Object</span></h4> - <p>The actualnode data which got by ajax. User-friendly debugging.</p> - <p class="highlight_red">The actual data's type of msg is affected by 'setting.async.dataType', please refer to JQuery API documentation.</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. When execute ajax complete success, alert message.</h4> - <pre xmlns=""><code>function zTreeOnAsyncSuccess(event, treeId, treeNode, msg) { - alert(msg); -}; -var setting = { - callback: { - onAsyncSuccess: zTreeOnAsyncSuccess - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(event, treeId, treeNode, msg)</span><span class="path">setting.callback.</span>onAsyncSuccess</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>Used to capture the complete success event when execute ajax.</p>
+ <p class="highlight_red">If you set 'setting.callback.beforeAsync',and return false, zTree will not execute ajax, and will not trigger the 'onAsyncSuccess / onAsyncError' callback.</p>
+ <p>Default: null</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>event</b><span>js event Object</span></h4>
+ <p>event Object</p>
+ <h4 class="topLine"><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the parent node</p>
+ <p class="highlight_red">When load root nodes, treeNode = null</p>
+ <h4 class="topLine"><b>msg</b><span>String / Object</span></h4>
+ <p>The actualnode data which got by ajax. User-friendly debugging.</p>
+ <p class="highlight_red">The actual data's type of msg is affected by 'setting.async.dataType', please refer to JQuery API documentation.</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. When execute ajax complete success, alert message.</h4>
+ <pre xmlns=""><code>function zTreeOnAsyncSuccess(event, treeId, treeNode, msg) {
+ alert(msg);
+};
+var setting = {
+ callback: {
+ onAsyncSuccess: zTreeOnAsyncSuccess
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onCheck.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onCheck.html index ed33f8d1..c6ce620a 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onCheck.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onCheck.html @@ -1,34 +1,34 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onCheck</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>Used to capture the check or uncheck event when check or uncheck the checkbox and radio.</p> - <p class="highlight_red">If you set 'setting.callback.beforeCheck',and return false, zTree will not change check state, and will not trigger the 'onCheck' callback.</p> - <p>Default: null</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>event</b><span>js event Object</span></h4> - <p>event Object</p> - <h4 class="topLine"><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p> - <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which is checked or unchecked</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. When check or uncheck the checkbox and radio, alert info about 'tId' and 'name' and 'checked'.</h4> - <pre xmlns=""><code>function zTreeOnCheck(event, treeId, treeNode) { - alert(treeNode.tId + ", " + treeNode.name + "," + treeNode.checked); -}; -var setting = { - callback: { - onCheck: zTreeOnCheck - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onCheck</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>Used to capture the check or uncheck event when check or uncheck the checkbox and radio.</p>
+ <p class="highlight_red">If you set 'setting.callback.beforeCheck',and return false, zTree will not change check state, and will not trigger the 'onCheck' callback.</p>
+ <p>Default: null</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>event</b><span>js event Object</span></h4>
+ <p>event Object</p>
+ <h4 class="topLine"><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which is checked or unchecked</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. When check or uncheck the checkbox and radio, alert info about 'tId' and 'name' and 'checked'.</h4>
+ <pre xmlns=""><code>function zTreeOnCheck(event, treeId, treeNode) {
+ alert(treeNode.tId + ", " + treeNode.name + "," + treeNode.checked);
+};
+var setting = {
+ callback: {
+ onCheck: zTreeOnCheck
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onClick.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onClick.html index 0453af85..28649ad1 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onClick.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onClick.html @@ -1,49 +1,49 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(event, treeId, treeNode, clickFlag)</span><span class="path">setting.callback.</span>onClick</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>Used to capture the click event when click node.</p> - <p class="highlight_red">If you set 'setting.callback.beforeClick',and return false, zTree will not change selected state, and will not trigger the 'onClick' callback.</p> - <p>Default: null</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>event</b><span>js event Object</span></h4> - <p>event Object</p> - <h4 class="topLine"><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p> - <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which is clicked</p> - <h4 class="topLine"><b>clickFlag</b><span>Number</span></h4> - <p>Node is selected or deselected state, please see table below for details</p> - <table width="100%" border="0" cellspacing="1" cellpadding="0"> - <thead><tr><td>clickFlag</td><td title="Whether to allow multi-select">selectedMulti</td><td title="Whether to press Ctrl-key or Cmd-key">autoCancelSelected<br/>&&<br/>event.ctrlKey / metaKey</td><td title="Node's selection state">isSelected</td><td>operate for selected</td></tr></thead> - <tbody> - <tr><td>1</td><td>true</td><td>false</td><td>false</td><td>node is selected (single)</td></tr> - <tr><td>1</td><td>true</td><td>false</td><td>true</td><td>node is selected (single)</td></tr> - <tr><td>2</td><td>true</td><td>true</td><td>false</td><td>node is selected (multi)</td></tr> - <tr><td>0</td><td>true</td><td>true</td><td>true</td><td>node is deselected</td></tr> - <tr><td>1</td><td>false</td><td>false</td><td>false</td><td>node is selected (single)</td></tr> - <tr><td>1</td><td>false</td><td>false</td><td>true</td><td>node is selected (single)</td></tr> - <tr><td>1</td><td>false</td><td>true</td><td>false</td><td>node is selected (single)</td></tr> - <tr><td>0</td><td>false</td><td>true</td><td>true</td><td>node is deselected</td></tr> - </tbody> - </table> - </div> - <h3>Examples of setting & function</h3> - <h4>1. When click node, alert info about 'tId' and 'name'.</h4> - <pre xmlns=""><code>function zTreeOnClick(event, treeId, treeNode) { - alert(treeNode.tId + ", " + treeNode.name); -}; -var setting = { - callback: { - onClick: zTreeOnClick - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(event, treeId, treeNode, clickFlag)</span><span class="path">setting.callback.</span>onClick</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>Used to capture the click event when click node.</p>
+ <p class="highlight_red">If you set 'setting.callback.beforeClick',and return false, zTree will not change selected state, and will not trigger the 'onClick' callback.</p>
+ <p>Default: null</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>event</b><span>js event Object</span></h4>
+ <p>event Object</p>
+ <h4 class="topLine"><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which is clicked</p>
+ <h4 class="topLine"><b>clickFlag</b><span>Number</span></h4>
+ <p>Node is selected or deselected state, please see table below for details</p>
+ <table width="100%" border="0" cellspacing="1" cellpadding="0">
+ <thead><tr><td>clickFlag</td><td title="Whether to allow multi-select">selectedMulti</td><td title="Whether to press Ctrl-key or Cmd-key">autoCancelSelected<br/>&&<br/>event.ctrlKey / metaKey</td><td title="Node's selection state">isSelected</td><td>operate for selected</td></tr></thead>
+ <tbody>
+ <tr><td>1</td><td>true</td><td>false</td><td>false</td><td>node is selected (single)</td></tr>
+ <tr><td>1</td><td>true</td><td>false</td><td>true</td><td>node is selected (single)</td></tr>
+ <tr><td>2</td><td>true</td><td>true</td><td>false</td><td>node is selected (multi)</td></tr>
+ <tr><td>0</td><td>true</td><td>true</td><td>true</td><td>node is deselected</td></tr>
+ <tr><td>1</td><td>false</td><td>false</td><td>false</td><td>node is selected (single)</td></tr>
+ <tr><td>1</td><td>false</td><td>false</td><td>true</td><td>node is selected (single)</td></tr>
+ <tr><td>1</td><td>false</td><td>true</td><td>false</td><td>node is selected (single)</td></tr>
+ <tr><td>0</td><td>false</td><td>true</td><td>true</td><td>node is deselected</td></tr>
+ </tbody>
+ </table>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. When click node, alert info about 'tId' and 'name'.</h4>
+ <pre xmlns=""><code>function zTreeOnClick(event, treeId, treeNode) {
+ alert(treeNode.tId + ", " + treeNode.name);
+};
+var setting = {
+ callback: {
+ onClick: zTreeOnClick
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onCollapse.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onCollapse.html index d605dc8e..2ae093a9 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onCollapse.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onCollapse.html @@ -1,34 +1,34 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onCollapse</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>Used to capture the event when collapse node.</p> - <p class="highlight_red">If you set 'setting.callback.beforeCollapse',and return false, zTree will not collapse node, and will not trigger the 'onCollapse' callback.</p> - <p>Default: null</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>event</b><span>js event Object</span></h4> - <p>event Object</p> - <h4 class="topLine"><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p> - <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which will be collapsed</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. When collapse node, alert info about 'tId' and 'name'.</h4> - <pre xmlns=""><code>function zTreeOnCollapse(event, treeId, treeNode) { - alert(treeNode.tId + ", " + treeNode.name); -}; -var setting = { - callback: { - onCollapse: zTreeOnCollapse - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onCollapse</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>Used to capture the event when collapse node.</p>
+ <p class="highlight_red">If you set 'setting.callback.beforeCollapse',and return false, zTree will not collapse node, and will not trigger the 'onCollapse' callback.</p>
+ <p>Default: null</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>event</b><span>js event Object</span></h4>
+ <p>event Object</p>
+ <h4 class="topLine"><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which will be collapsed</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. When collapse node, alert info about 'tId' and 'name'.</h4>
+ <pre xmlns=""><code>function zTreeOnCollapse(event, treeId, treeNode) {
+ alert(treeNode.tId + ", " + treeNode.name);
+};
+var setting = {
+ callback: {
+ onCollapse: zTreeOnCollapse
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onDblClick.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onDblClick.html index fbd47e8d..ceeaa1bb 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onDblClick.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onDblClick.html @@ -1,35 +1,35 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onDblClick</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>Used to capture the dblclick event when double click node.</p> - <p class="highlight_red">If you set 'setting.callback.beforeDblClick',and return false, zTree will not trigger the 'onDblClick' callback.</p> - <p>Default: null</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>event</b><span>js event Object</span></h4> - <p>event Object</p> - <h4 class="topLine"><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p> - <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which is double clicked</p> - <p class="highlight_red">If the DOM which dblclicked isn't a node, it will return null.</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. When double click node, alert info about 'tId' and 'name'.</h4> - <pre xmlns=""><code>function zTreeOnDblClick(event, treeId, treeNode) { - alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot"); -}; -var setting = { - callback: { - onDblClick: zTreeOnDblClick - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onDblClick</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>Used to capture the dblclick event when double click node.</p>
+ <p class="highlight_red">If you set 'setting.callback.beforeDblClick',and return false, zTree will not trigger the 'onDblClick' callback.</p>
+ <p>Default: null</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>event</b><span>js event Object</span></h4>
+ <p>event Object</p>
+ <h4 class="topLine"><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which is double clicked</p>
+ <p class="highlight_red">If the DOM which dblclicked isn't a node, it will return null.</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. When double click node, alert info about 'tId' and 'name'.</h4>
+ <pre xmlns=""><code>function zTreeOnDblClick(event, treeId, treeNode) {
+ alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
+};
+var setting = {
+ callback: {
+ onDblClick: zTreeOnDblClick
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onDrag.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onDrag.html index d178b635..76ee2e2f 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onDrag.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onDrag.html @@ -1,34 +1,34 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(event, treeId, treeNodes)</span><span class="path">setting.callback.</span>onDrag</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>Used to capture the drag event when drag node.</p> - <p class="highlight_red">If you set 'setting.callback.beforeDrag',and return false, zTree will stop drag, and will not trigger the 'onDragMove' & 'onDrag' callback.</p> - <p>Default: null</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>event</b><span>js event Object</span></h4> - <p>event Object</p> - <h4 class="topLine"><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, the tree is what the treeNodes are belong to, easy for users to control.</p> - <h4 class="topLine"><b>treeNodes</b><span>Array(JSON)</span></h4> - <p>A collection of the nodes which will be dragged</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. When drag nodes, alert the number of dragged nodes.</h4> - <pre xmlns=""><code>function zTreeOnDrag(event, treeId, treeNodes) { - alert(treeNodes.length); -}; -var setting = { - callback: { - onDrag: zTreeOnDrag - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(event, treeId, treeNodes)</span><span class="path">setting.callback.</span>onDrag</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>Used to capture the drag event when drag node.</p>
+ <p class="highlight_red">If you set 'setting.callback.beforeDrag',and return false, zTree will stop drag, and will not trigger the 'onDragMove' & 'onDrag' callback.</p>
+ <p>Default: null</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>event</b><span>js event Object</span></h4>
+ <p>event Object</p>
+ <h4 class="topLine"><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, the tree is what the treeNodes are belong to, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNodes</b><span>Array(JSON)</span></h4>
+ <p>A collection of the nodes which will be dragged</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. When drag nodes, alert the number of dragged nodes.</h4>
+ <pre xmlns=""><code>function zTreeOnDrag(event, treeId, treeNodes) {
+ alert(treeNodes.length);
+};
+var setting = {
+ callback: {
+ onDrag: zTreeOnDrag
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onDragMove.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onDragMove.html index a56e8353..dcc5031f 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onDragMove.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onDragMove.html @@ -1,34 +1,34 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(event, treeId, treeNodes)</span><span class="path">setting.callback.</span>onDragMove</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>Used to capture the drag-move event when drag & drop node.</p> - <p class="highlight_red">Mainly used to capture the DOM which the nodes was drag in. </p> - <p>Default: null</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>event</b><span>js event Object</span></h4> - <p>event Object</p> - <h4 class="topLine"><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, the tree is what the treeNodes are belong to, easy for users to control.</p> - <h4 class="topLine"><b>treeNodes</b><span>Array(JSON)</span></h4> - <p>A collection of the nodes which will be dragged</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. When drag nodes, output the target dom.</h4> - <pre xmlns=""><code>function zTreeOnDragMove(event, treeId, treeNodes) { - console.log(event.target); -}; -var setting = { - callback: { - onDragMove: zTreeOnDragMove - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(event, treeId, treeNodes)</span><span class="path">setting.callback.</span>onDragMove</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>Used to capture the drag-move event when drag & drop node.</p>
+ <p class="highlight_red">Mainly used to capture the DOM which the nodes was drag in. </p>
+ <p>Default: null</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>event</b><span>js event Object</span></h4>
+ <p>event Object</p>
+ <h4 class="topLine"><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, the tree is what the treeNodes are belong to, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNodes</b><span>Array(JSON)</span></h4>
+ <p>A collection of the nodes which will be dragged</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. When drag nodes, output the target dom.</h4>
+ <pre xmlns=""><code>function zTreeOnDragMove(event, treeId, treeNodes) {
+ console.log(event.target);
+};
+var setting = {
+ callback: {
+ onDragMove: zTreeOnDragMove
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onDrop.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onDrop.html index 63624631..229b6ab2 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onDrop.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onDrop.html @@ -1,48 +1,48 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(event, treeId, treeNodes, targetNode, moveType, isCopy)</span><span class="path">setting.callback.</span>onDrop</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>Used to capture the drop event when drag-drop node.</p> - <p class="highlight_red">If you set 'setting.callback.beforeDrop',and return false, zTree will restore the dragged nodes, and will not trigger the 'onDrop' callback.</p> - <p>Default: null</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>event</b><span>js event Object</span></h4> - <p>event Object</p> - <h4 class="topLine"><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, the tree is what the targetNode is belong to, easy for users to control.</p> - <h4 class="topLine"><b>treeNodes</b><span>Array(JSON)</span></h4> - <p>A collection of the nodes which has been dragged</p> - <p class="highlight_red">The treeNodes are the data of the nodes which be dragged, when move nodes.</p> - <p class="highlight_red">The treeNodes are the clone data of the nodes which be dragged, when copy nodes.</p> - <h4 class="topLine"><b>targetNode</b><span>JSON</span></h4> - <p>JSON data object of the target node which treeNodes are drag-dropped.</p> - <p class="highlight_red">If the treeNodes will be root node, the targetNode = null</p> - <h4 class="topLine"><b>moveType</b><span>String</span></h4> - <p>the relative position of move to the target node</p> - <p class="highlight_red">"inner": will be child of targetNode</p> - <p class="highlight_red">"prev": will be sibling node, and be in front of targetNode</p> - <p class="highlight_red">"next": will be sibling node, and be behind targetNode</p> - <p class="highlight_red">If moveType is null, means drag & drop is cancel.</p> - <h4 class="topLine"><b>isCopy</b><span>Boolean</span></h4> - <p>the flag used to judge copy node or move node</p> - <p class="highlight_red">true: copy node; false: move node</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. When drag-drop nodes complete, alert the number of dragged nodes and info about targetNode.</h4> - <pre xmlns=""><code>function zTreeOnDrop(event, treeId, treeNodes, targetNode, moveType) { - alert(treeNodes.length + "," + (targetNode ? (targetNode.tId + ", " + targetNode.name) : "isRoot" )); -}; -var setting = { - callback: { - onDrop: zTreeOnDrop - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(event, treeId, treeNodes, targetNode, moveType, isCopy)</span><span class="path">setting.callback.</span>onDrop</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>Used to capture the drop event when drag-drop node.</p>
+ <p class="highlight_red">If you set 'setting.callback.beforeDrop',and return false, zTree will restore the dragged nodes, and will not trigger the 'onDrop' callback.</p>
+ <p>Default: null</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>event</b><span>js event Object</span></h4>
+ <p>event Object</p>
+ <h4 class="topLine"><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, the tree is what the targetNode is belong to, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNodes</b><span>Array(JSON)</span></h4>
+ <p>A collection of the nodes which has been dragged</p>
+ <p class="highlight_red">The treeNodes are the data of the nodes which be dragged, when move nodes.</p>
+ <p class="highlight_red">The treeNodes are the clone data of the nodes which be dragged, when copy nodes.</p>
+ <h4 class="topLine"><b>targetNode</b><span>JSON</span></h4>
+ <p>JSON data object of the target node which treeNodes are drag-dropped.</p>
+ <p class="highlight_red">If the treeNodes will be root node, the targetNode = null</p>
+ <h4 class="topLine"><b>moveType</b><span>String</span></h4>
+ <p>the relative position of move to the target node</p>
+ <p class="highlight_red">"inner": will be child of targetNode</p>
+ <p class="highlight_red">"prev": will be sibling node, and be in front of targetNode</p>
+ <p class="highlight_red">"next": will be sibling node, and be behind targetNode</p>
+ <p class="highlight_red">If moveType is null, means drag & drop is cancel.</p>
+ <h4 class="topLine"><b>isCopy</b><span>Boolean</span></h4>
+ <p>the flag used to judge copy node or move node</p>
+ <p class="highlight_red">true: copy node; false: move node</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. When drag-drop nodes complete, alert the number of dragged nodes and info about targetNode.</h4>
+ <pre xmlns=""><code>function zTreeOnDrop(event, treeId, treeNodes, targetNode, moveType) {
+ alert(treeNodes.length + "," + (targetNode ? (targetNode.tId + ", " + targetNode.name) : "isRoot" ));
+};
+var setting = {
+ callback: {
+ onDrop: zTreeOnDrop
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onExpand.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onExpand.html index 7b9d8d50..d375f6f4 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onExpand.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onExpand.html @@ -1,34 +1,34 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onExpand</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>Used to capture the event when expand node.</p> - <p class="highlight_red">If you set 'setting.callback.beforeExpand',and return false, zTree will not expand node, and will not trigger the 'onExpand' callback.</p> - <p>Default: null</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>event</b><span>js event Object</span></h4> - <p>event Object</p> - <h4 class="topLine"><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p> - <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which will be expanded</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. When expand node, alert info about 'tId' and 'name'.</h4> - <pre xmlns=""><code>function zTreeOnExpand(event, treeId, treeNode) { - alert(treeNode.tId + ", " + treeNode.name); -}; -var setting = { - callback: { - onExpand: zTreeOnExpand - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onExpand</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>Used to capture the event when expand node.</p>
+ <p class="highlight_red">If you set 'setting.callback.beforeExpand',and return false, zTree will not expand node, and will not trigger the 'onExpand' callback.</p>
+ <p>Default: null</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>event</b><span>js event Object</span></h4>
+ <p>event Object</p>
+ <h4 class="topLine"><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which will be expanded</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. When expand node, alert info about 'tId' and 'name'.</h4>
+ <pre xmlns=""><code>function zTreeOnExpand(event, treeId, treeNode) {
+ alert(treeNode.tId + ", " + treeNode.name);
+};
+var setting = {
+ callback: {
+ onExpand: zTreeOnExpand
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onMouseDown.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onMouseDown.html index bfd714c2..cf94216a 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onMouseDown.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onMouseDown.html @@ -1,35 +1,35 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onMouseDown</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>Used to capture the event when mouse down.</p> - <p class="highlight_red">If you set 'setting.callback.beforeMouseDown',and return false, zTree will not trigger the 'onMouseDown' callback.</p> - <p>Default: null</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>event</b><span>js event Object</span></h4> - <p>event Object</p> - <h4 class="topLine"><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p> - <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which mouse over</p> - <p class="highlight_red">If the DOM which mouse over isn't a node, it will return null.</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. When mouse down, alert info about 'tId' and 'name'.</h4> - <pre xmlns=""><code>function zTreeOnMouseDown(event, treeId, treeNode) { - alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot"); -}; -var setting = { - callback: { - onMouseDown: zTreeOnMouseDown - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onMouseDown</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>Used to capture the event when mouse down.</p>
+ <p class="highlight_red">If you set 'setting.callback.beforeMouseDown',and return false, zTree will not trigger the 'onMouseDown' callback.</p>
+ <p>Default: null</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>event</b><span>js event Object</span></h4>
+ <p>event Object</p>
+ <h4 class="topLine"><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which mouse over</p>
+ <p class="highlight_red">If the DOM which mouse over isn't a node, it will return null.</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. When mouse down, alert info about 'tId' and 'name'.</h4>
+ <pre xmlns=""><code>function zTreeOnMouseDown(event, treeId, treeNode) {
+ alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
+};
+var setting = {
+ callback: {
+ onMouseDown: zTreeOnMouseDown
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onMouseUp.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onMouseUp.html index 93edf319..2c0348a9 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onMouseUp.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onMouseUp.html @@ -1,35 +1,35 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onMouseUp</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>Used to capture the event when mouse up.</p> - <p class="highlight_red">If you set 'setting.callback.beforeMouseUp',and return false, zTree will not trigger the 'onMouseUp' callback.</p> - <p>Default: null</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>event</b><span>js event Object</span></h4> - <p>event Object</p> - <h4 class="topLine"><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p> - <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which mouse over</p> - <p class="highlight_red">If the DOM which mouse over isn't a node, it will return null.</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. When mouse up, alert info about 'tId' and 'name'.</h4> - <pre xmlns=""><code>function zTreeOnMouseUp(event, treeId, treeNode) { - alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot"); -}; -var setting = { - callback: { - onMouseUp: zTreeOnMouseUp - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onMouseUp</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>Used to capture the event when mouse up.</p>
+ <p class="highlight_red">If you set 'setting.callback.beforeMouseUp',and return false, zTree will not trigger the 'onMouseUp' callback.</p>
+ <p>Default: null</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>event</b><span>js event Object</span></h4>
+ <p>event Object</p>
+ <h4 class="topLine"><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which mouse over</p>
+ <p class="highlight_red">If the DOM which mouse over isn't a node, it will return null.</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. When mouse up, alert info about 'tId' and 'name'.</h4>
+ <pre xmlns=""><code>function zTreeOnMouseUp(event, treeId, treeNode) {
+ alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
+};
+var setting = {
+ callback: {
+ onMouseUp: zTreeOnMouseUp
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onNodeCreated.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onNodeCreated.html index a98b572f..a60768d6 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onNodeCreated.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onNodeCreated.html @@ -1,35 +1,35 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onNodeCreated</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>Used to capture the event when node's DOM is created.</p> - <p class="highlight_red">Because v3.x uses lazy loading technology, so the nodes which doesn't create DOM when initialized will not trigger this callback, until its parent node is expanded.</p> - <p class="highlight_red">Large amount of data to load, please note: do not set onNodeCreated, can improve performance as when initialized.</p> - <p>Default: null</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>event</b><span>js event Object</span></h4> - <p>event Object</p> - <h4 class="topLine"><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p> - <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which DOM is created</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. When node's DOM is created, alert info about 'tId' and 'name'.</h4> - <pre xmlns=""><code>function zTreeOnNodeCreated(event, treeId, treeNode) { - alert(treeNode.tId + ", " + treeNode.name); -}; -var setting = { - callback: { - onNodeCreated: zTreeOnNodeCreated - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onNodeCreated</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>Used to capture the event when node's DOM is created.</p>
+ <p class="highlight_red">Because v3.x uses lazy loading technology, so the nodes which doesn't create DOM when initialized will not trigger this callback, until its parent node is expanded.</p>
+ <p class="highlight_red">Large amount of data to load, please note: do not set onNodeCreated, can improve performance as when initialized.</p>
+ <p>Default: null</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>event</b><span>js event Object</span></h4>
+ <p>event Object</p>
+ <h4 class="topLine"><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which DOM is created</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. When node's DOM is created, alert info about 'tId' and 'name'.</h4>
+ <pre xmlns=""><code>function zTreeOnNodeCreated(event, treeId, treeNode) {
+ alert(treeNode.tId + ", " + treeNode.name);
+};
+var setting = {
+ callback: {
+ onNodeCreated: zTreeOnNodeCreated
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onRemove.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onRemove.html index ce294136..5a520493 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onRemove.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onRemove.html @@ -1,34 +1,34 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onRemove</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>Used to capture the event when remove node.</p> - <p class="highlight_red">If you set 'setting.callback.beforeRemove',and return false, zTree will not remove node, and will not trigger the 'onRemove' callback.</p> - <p>Default: null</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>event</b><span>js event Object</span></h4> - <p>event Object</p> - <h4 class="topLine"><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p> - <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which was removed.</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. When remove node, alert info about 'tId' and 'name'.</h4> - <pre xmlns=""><code>function zTreeOnRemove(event, treeId, treeNode) { - alert(treeNode.tId + ", " + treeNode.name); -} -var setting = { - callback: { - onRemove: zTreeOnRemove - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onRemove</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>Used to capture the event when remove node.</p>
+ <p class="highlight_red">If you set 'setting.callback.beforeRemove',and return false, zTree will not remove node, and will not trigger the 'onRemove' callback.</p>
+ <p>Default: null</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>event</b><span>js event Object</span></h4>
+ <p>event Object</p>
+ <h4 class="topLine"><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which was removed.</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. When remove node, alert info about 'tId' and 'name'.</h4>
+ <pre xmlns=""><code>function zTreeOnRemove(event, treeId, treeNode) {
+ alert(treeNode.tId + ", " + treeNode.name);
+}
+var setting = {
+ callback: {
+ onRemove: zTreeOnRemove
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onRename.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onRename.html index cd47eae1..5a7cdd86 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onRename.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onRename.html @@ -1,40 +1,40 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(event, treeId, treeNode, isCancel)</span><span class="path">setting.callback.</span>onRename</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>Used to capture the event when remove node.</p> - <p class="highlight_red">1. If you set 'setting.callback.beforeRename',and return false, zTree will keep the editing name, and will not trigger the 'onRename' callback.</p> - <p class="highlight_red">2. If you modity treeNode data, and use 'updateNode' function, zTree will not trigger the 'onRename' callback.</p> - <p class="highlight_red">3. From v3.5.13, zTree will trigger this callback when user cancel edit name. please see 'isCancel' parameter.</p> - <p>Default: null</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>event</b><span>js event Object</span></h4> - <p>event Object</p> - <h4 class="topLine"><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p> - <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which was rename.</p> - <h4 class="topLine"><b>isCancel</b><span>Boolean</span></h4> - <p>the status about cancel edit name (v3.5.13+)</p> - <p class="highlight_red">isCancel = true means: user cancel edit name. (press ESC or use cancelEditName() function)</p> - <p class="highlight_red">isCancel = false means: user submit edit name.</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. When rename node, alert info about 'tId' and 'name'.</h4> - <pre xmlns=""><code>function zTreeOnRename(event, treeId, treeNode, isCancel) { - alert(treeNode.tId + ", " + treeNode.name); -} -var setting = { - callback: { - onRename: zTreeOnRename - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(event, treeId, treeNode, isCancel)</span><span class="path">setting.callback.</span>onRename</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>Used to capture the event when remove node.</p>
+ <p class="highlight_red">1. If you set 'setting.callback.beforeRename',and return false, zTree will keep the editing name, and will not trigger the 'onRename' callback.</p>
+ <p class="highlight_red">2. If you modity treeNode data, and use 'updateNode' function, zTree will not trigger the 'onRename' callback.</p>
+ <p class="highlight_red">3. From v3.5.13, zTree will trigger this callback when user cancel edit name. please see 'isCancel' parameter.</p>
+ <p>Default: null</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>event</b><span>js event Object</span></h4>
+ <p>event Object</p>
+ <h4 class="topLine"><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which was rename.</p>
+ <h4 class="topLine"><b>isCancel</b><span>Boolean</span></h4>
+ <p>the status about cancel edit name (v3.5.13+)</p>
+ <p class="highlight_red">isCancel = true means: user cancel edit name. (press ESC or use cancelEditName() function)</p>
+ <p class="highlight_red">isCancel = false means: user submit edit name.</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. When rename node, alert info about 'tId' and 'name'.</h4>
+ <pre xmlns=""><code>function zTreeOnRename(event, treeId, treeNode, isCancel) {
+ alert(treeNode.tId + ", " + treeNode.name);
+}
+var setting = {
+ callback: {
+ onRename: zTreeOnRename
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onRightClick.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onRightClick.html index 86b4b012..95756518 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onRightClick.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.callback.onRightClick.html @@ -1,36 +1,36 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onRightClick</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>Used to capture the event when mouse right click node.</p> - <p class="highlight_red">If you set 'setting.callback.beforeRightClick',and return false, zTree will not trigger the 'onRightClick' callback.</p> - <p class="highlight_red">If you set 'setting.callback.onRightClick', zTree will shield the browser context menu when mouse right click on zTree.</p> - <p>Default: null</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>event</b><span>js event Object</span></h4> - <p>event Object</p> - <h4 class="topLine"><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p> - <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which is mouse right clicked</p> - <p class="highlight_red">If the DOM which mouse right clicked isn't a node, it will return null.</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. When mouse right click node, alert info about 'tId' and 'name'.</h4> - <pre xmlns=""><code>function zTreeOnRightClick(event, treeId, treeNode) { - alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot"); -}; -var setting = { - callback: { - onRightClick: zTreeOnRightClick - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onRightClick</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>Used to capture the event when mouse right click node.</p>
+ <p class="highlight_red">If you set 'setting.callback.beforeRightClick',and return false, zTree will not trigger the 'onRightClick' callback.</p>
+ <p class="highlight_red">If you set 'setting.callback.onRightClick', zTree will shield the browser context menu when mouse right click on zTree.</p>
+ <p>Default: null</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>event</b><span>js event Object</span></h4>
+ <p>event Object</p>
+ <h4 class="topLine"><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which is mouse right clicked</p>
+ <p class="highlight_red">If the DOM which mouse right clicked isn't a node, it will return null.</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. When mouse right click node, alert info about 'tId' and 'name'.</h4>
+ <pre xmlns=""><code>function zTreeOnRightClick(event, treeId, treeNode) {
+ alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
+};
+var setting = {
+ callback: {
+ onRightClick: zTreeOnRightClick
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.check.autoCheckTrigger.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.check.autoCheckTrigger.html index b8b04cca..baa08693 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.check.autoCheckTrigger.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.check.autoCheckTrigger.html @@ -1,29 +1,29 @@ -<div class="apiDetail"> -<div> - <h2><span>Boolean</span><span class="path">setting.check.</span>autoCheckTrigger</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>When node is automatically checked or unchecked, this parameter used to set to trigger 'beforeCheck / onCheck' callback. It is valid when <span class="highlight_red">[setting.check.enable = true & setting.check.chkStyle = "checkbox"]</span></p> - <p class="highlight_red">1. If you set 'setting.check.chkboxType' to { "Y": "", "N": "" }, will not automatically checked or unchecked.</p> - <p class="highlight_red">2. If you turn on the trigger and there are many more nodes, will affect the performance, because the check or uncheck node can cause many nodes to be automatically checked or unchecked, it will trigger a lot of callbacks, according to the need to decide whether to use this feature.</p> - <p>Default: false</p> - </div> - </div> - <h3>Boolean Format</h3> - <div class="desc"> - <p> true means: trigger callback</p> - <p> false means: don't trigger callback</p> - </div> - <h3>Examples of setting</h3> - <h4>1. When node is automatically checked or unchecked, zTree trigger 'beforeCheck / onCheck' callback.</h4> - <pre xmlns=""><code>var setting = { - check: { - enable: true, - autoCheckTrigger: true - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Boolean</span><span class="path">setting.check.</span>autoCheckTrigger</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>When node is automatically checked or unchecked, this parameter used to set to trigger 'beforeCheck / onCheck' callback. It is valid when <span class="highlight_red">[setting.check.enable = true & setting.check.chkStyle = "checkbox"]</span></p>
+ <p class="highlight_red">1. If you set 'setting.check.chkboxType' to { "Y": "", "N": "" }, will not automatically checked or unchecked.</p>
+ <p class="highlight_red">2. If you turn on the trigger and there are many more nodes, will affect the performance, because the check or uncheck node can cause many nodes to be automatically checked or unchecked, it will trigger a lot of callbacks, according to the need to decide whether to use this feature.</p>
+ <p>Default: false</p>
+ </div>
+ </div>
+ <h3>Boolean Format</h3>
+ <div class="desc">
+ <p> true means: trigger callback</p>
+ <p> false means: don't trigger callback</p>
+ </div>
+ <h3>Examples of setting</h3>
+ <h4>1. When node is automatically checked or unchecked, zTree trigger 'beforeCheck / onCheck' callback.</h4>
+ <pre xmlns=""><code>var setting = {
+ check: {
+ enable: true,
+ autoCheckTrigger: true
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.check.chkDisabledInherit.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.check.chkDisabledInherit.html index 98d824e4..5c55cec7 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.check.chkDisabledInherit.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.check.chkDisabledInherit.html @@ -1,28 +1,28 @@ -<div class="apiDetail"> -<div> - <h2><span>Boolean</span><span class="path">setting.check.</span>chkDisabledInherit</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>When the parent node's 'chkDisabled' attribute is true, set the child nodes automatically inherit the 'chkDisabled' attribute. It is valid when <span class="highlight_red">[setting.check.enable = true]</span></p> - <p class="highlight_red">1. Only be used to initialize the nodes, easy batch operations. Please use the 'updateNode' method modify existing node.</p> - <p>Default: false</p> - </div> - </div> - <h3>Boolean Format</h3> - <div class="desc"> - <p> true means: When add new child nodes, if parent node's 'chkDisabled' attribute is true, the child nodes automatically inherit the 'chkDisabled' attribute.</p> - <p> false means: When add new child nodes, the child nodes don't inherit the 'chkDisabled' attribute from parent node.</p> - </div> - <h3>Examples of setting</h3> - <h4>1. When add new child nodes, the child nodes automatically inherit the 'chkDisabled' attribute from parent node.</h4> - <pre xmlns=""><code>var setting = { - check: { - enable: true, - chkDisabledInherit: true - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Boolean</span><span class="path">setting.check.</span>chkDisabledInherit</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>When the parent node's 'chkDisabled' attribute is true, set the child nodes automatically inherit the 'chkDisabled' attribute. It is valid when <span class="highlight_red">[setting.check.enable = true]</span></p>
+ <p class="highlight_red">1. Only be used to initialize the nodes, easy batch operations. Please use the 'updateNode' method modify existing node.</p>
+ <p>Default: false</p>
+ </div>
+ </div>
+ <h3>Boolean Format</h3>
+ <div class="desc">
+ <p> true means: When add new child nodes, if parent node's 'chkDisabled' attribute is true, the child nodes automatically inherit the 'chkDisabled' attribute.</p>
+ <p> false means: When add new child nodes, the child nodes don't inherit the 'chkDisabled' attribute from parent node.</p>
+ </div>
+ <h3>Examples of setting</h3>
+ <h4>1. When add new child nodes, the child nodes automatically inherit the 'chkDisabled' attribute from parent node.</h4>
+ <pre xmlns=""><code>var setting = {
+ check: {
+ enable: true,
+ chkDisabledInherit: true
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.check.chkStyle.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.check.chkStyle.html index d42e757a..af694801 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.check.chkStyle.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.check.chkStyle.html @@ -1,48 +1,48 @@ -<div class="apiDetail"> -<div> - <h2><span>String</span><span class="path">setting.check.</span>chkStyle</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>Use the checkbox or radio. It is valid when <span class="highlight_red">[setting.check.enable = true]</span></p> - <p>Default: "checkbox"</p> - </div> - </div> - <h3>String Format</h3> - <div class="desc"> - <p>When chkStyle = "checkbox", zTree show checkbox, and '<span class="highlight_red">setting.check.chkboxType</span>' attribute is valid. -<br/>When chkStyle = "radio", zTree show radio, and '<span class="highlight_red">setting.check.radioType</span>' attribute is valid.</p> - <p class="highlight_red">Please note that letter case, do not change.</p> - </div> - <h3>checkbox States Descriptions</h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p><button type="button" class="chk checkbox_false_full"></button>not checked; <span class="highlight_red">If node is parent, so its child nodes have been not checked.</span> when mouse over: <button type="button" class="chk checkbox_false_full_focus"></button></p> - <p><button type="button" class="chk checkbox_false_part"></button>not checked; (only parent node) <span class="highlight_red">some of its child nodes have been checked.</span> when mouse over: <button type="button" class="chk checkbox_false_part_focus"></button></p> - <p><button type="button" class="chk checkbox_true_full"></button>be checked; <span class="highlight_red">If node is parent, so its all child nodes have been checked.</span> when mouse over: <button type="button" class="chk checkbox_true_full_focus"></button></p> - <p><button type="button" class="chk checkbox_true_part"></button>be checked; (only parent node) <span class="highlight_red">some of its child nodes or all have been not checked.</span> when mouse over: <button type="button" class="chk checkbox_true_part_focus"></button></p> - </div> - </div> - <h3>radio States Descriptions</h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p><button type="button" class="chk radio_false_full"></button>not checked; <span class="highlight_red">If node is parent, so its child have been not checked.</span> when mouse over: <button type="button" class="chk radio_false_full_focus"></button></p> - <p><button type="button" class="chk radio_false_part"></button>not checked; (only parent node) <span class="highlight_red">some of its child have been checked.</span> when mouse over: <button type="button" class="chk radio_false_part_focus"></button></p> - <p><button type="button" class="chk radio_true_full"></button>be checked; <span class="highlight_red">If node is parent, so its child have been not checked.</span> when mouse over: <button type="button" class="chk radio_true_full_focus"></button></p> - <p><button type="button" class="chk radio_true_part"></button>be checked; (only parent node) <span class="highlight_red">some of its child have been checked.</span> when mouse over: <button type="button" class="chk radio_true_part_focus"></button></p> - </div> - </div> - <h3>Examples of setting</h3> - <h4>1. use radio</h4> - <pre xmlns=""><code>var setting = { - check: { - enable: true, - chkStyle: "radio" - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>String</span><span class="path">setting.check.</span>chkStyle</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>Use the checkbox or radio. It is valid when <span class="highlight_red">[setting.check.enable = true]</span></p>
+ <p>Default: "checkbox"</p>
+ </div>
+ </div>
+ <h3>String Format</h3>
+ <div class="desc">
+ <p>When chkStyle = "checkbox", zTree show checkbox, and '<span class="highlight_red">setting.check.chkboxType</span>' attribute is valid.
+<br/>When chkStyle = "radio", zTree show radio, and '<span class="highlight_red">setting.check.radioType</span>' attribute is valid.</p>
+ <p class="highlight_red">Please note that letter case, do not change.</p>
+ </div>
+ <h3>checkbox States Descriptions</h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p><button type="button" class="chk checkbox_false_full"></button>not checked; <span class="highlight_red">If node is parent, so its child nodes have been not checked.</span> when mouse over: <button type="button" class="chk checkbox_false_full_focus"></button></p>
+ <p><button type="button" class="chk checkbox_false_part"></button>not checked; (only parent node) <span class="highlight_red">some of its child nodes have been checked.</span> when mouse over: <button type="button" class="chk checkbox_false_part_focus"></button></p>
+ <p><button type="button" class="chk checkbox_true_full"></button>be checked; <span class="highlight_red">If node is parent, so its all child nodes have been checked.</span> when mouse over: <button type="button" class="chk checkbox_true_full_focus"></button></p>
+ <p><button type="button" class="chk checkbox_true_part"></button>be checked; (only parent node) <span class="highlight_red">some of its child nodes or all have been not checked.</span> when mouse over: <button type="button" class="chk checkbox_true_part_focus"></button></p>
+ </div>
+ </div>
+ <h3>radio States Descriptions</h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p><button type="button" class="chk radio_false_full"></button>not checked; <span class="highlight_red">If node is parent, so its child have been not checked.</span> when mouse over: <button type="button" class="chk radio_false_full_focus"></button></p>
+ <p><button type="button" class="chk radio_false_part"></button>not checked; (only parent node) <span class="highlight_red">some of its child have been checked.</span> when mouse over: <button type="button" class="chk radio_false_part_focus"></button></p>
+ <p><button type="button" class="chk radio_true_full"></button>be checked; <span class="highlight_red">If node is parent, so its child have been not checked.</span> when mouse over: <button type="button" class="chk radio_true_full_focus"></button></p>
+ <p><button type="button" class="chk radio_true_part"></button>be checked; (only parent node) <span class="highlight_red">some of its child have been checked.</span> when mouse over: <button type="button" class="chk radio_true_part_focus"></button></p>
+ </div>
+ </div>
+ <h3>Examples of setting</h3>
+ <h4>1. use radio</h4>
+ <pre xmlns=""><code>var setting = {
+ check: {
+ enable: true,
+ chkStyle: "radio"
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.check.chkboxType.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.check.chkboxType.html index 5cecc9ee..92da8f1f 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.check.chkboxType.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.check.chkboxType.html @@ -1,31 +1,31 @@ -<div class="apiDetail"> -<div> - <h2><span>JSON</span><span class="path">setting.check.</span>chkboxType</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>When one node is checked or unchecked, control its parent node and its child node auto checked or unchecked. It is valid when <span class="highlight_red">[setting.check.enable = true & setting.check.chkStyle = "checkbox"]</span></p> - <p>Default: { "Y": "ps", "N": "ps" }</p> - </div> - </div> - <h3>JSON Format</h3> - <div class="desc"> - <p>"Y" attribute use to set auto check after checkbox was checked. -<br/>"N" attribute use to set auto uncheck after checkbox was unchecked. -<br/>If value has "p", so parent nodes will be checked or unchecked. -<br/>If value has "s", so child nodes will be checked or unchecked.</p> - <p class="highlight_red">Please note that letter case, do not change.</p> - </div> - <h3>Examples of setting</h3> - <h4>1. If check the node, so only auto check parent nodes; If uncheck the node, so only auto uncheck child nodes;</h4> - <pre xmlns=""><code>var setting = { - check: { - enable: true, - chkStyle: "checkbox", - chkboxType: { "Y": "p", "N": "s" } - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>JSON</span><span class="path">setting.check.</span>chkboxType</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>When one node is checked or unchecked, control its parent node and its child node auto checked or unchecked. It is valid when <span class="highlight_red">[setting.check.enable = true & setting.check.chkStyle = "checkbox"]</span></p>
+ <p>Default: { "Y": "ps", "N": "ps" }</p>
+ </div>
+ </div>
+ <h3>JSON Format</h3>
+ <div class="desc">
+ <p>"Y" attribute use to set auto check after checkbox was checked.
+<br/>"N" attribute use to set auto uncheck after checkbox was unchecked.
+<br/>If value has "p", so parent nodes will be checked or unchecked.
+<br/>If value has "s", so child nodes will be checked or unchecked.</p>
+ <p class="highlight_red">Please note that letter case, do not change.</p>
+ </div>
+ <h3>Examples of setting</h3>
+ <h4>1. If check the node, so only auto check parent nodes; If uncheck the node, so only auto uncheck child nodes;</h4>
+ <pre xmlns=""><code>var setting = {
+ check: {
+ enable: true,
+ chkStyle: "checkbox",
+ chkboxType: { "Y": "p", "N": "s" }
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.check.enable.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.check.enable.html index 0236b5f8..b1cfa6d3 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.check.enable.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.check.enable.html @@ -1,26 +1,26 @@ -<div class="apiDetail"> -<div> - <h2><span>Boolean</span><span class="path">setting.check.</span>enable</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>Set to use checkbox or radio in zTree</p> - <p>Default: false</p> - </div> - </div> - <h3>Boolean Format</h3> - <div class="desc"> - <p> true means: use the checkbox or radio</p> - <p> false means: don't use the checkbox or radio</p> - </div> - <h3>Examples of setting</h3> - <h4>1. use the checkbox</h4> - <pre xmlns=""><code>var setting = { - check: { - enable: true - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Boolean</span><span class="path">setting.check.</span>enable</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>Set to use checkbox or radio in zTree</p>
+ <p>Default: false</p>
+ </div>
+ </div>
+ <h3>Boolean Format</h3>
+ <div class="desc">
+ <p> true means: use the checkbox or radio</p>
+ <p> false means: don't use the checkbox or radio</p>
+ </div>
+ <h3>Examples of setting</h3>
+ <h4>1. use the checkbox</h4>
+ <pre xmlns=""><code>var setting = {
+ check: {
+ enable: true
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.check.nocheckInherit.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.check.nocheckInherit.html index 758b437e..45f8ca84 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.check.nocheckInherit.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.check.nocheckInherit.html @@ -1,28 +1,28 @@ -<div class="apiDetail"> -<div> - <h2><span>Boolean</span><span class="path">setting.check.</span>nocheckInherit</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>When the parent node's 'nocheck' attribute is true, set the child nodes automatically inherit the 'nocheck' attribute. It is valid when <span class="highlight_red">[setting.check.enable = true]</span></p> - <p class="highlight_red">1. Only be used to initialize the nodes, easy batch operations. Please use the 'updateNode' method modify existing node.</p> - <p>Default: false</p> - </div> - </div> - <h3>Boolean Format</h3> - <div class="desc"> - <p> true means: When add new child nodes, if parent node's 'nocheck' attribute is true, the child nodes automatically inherit the 'nocheck' attribute.</p> - <p> false means: When add new child nodes, the child nodes don't inherit the 'nocheck' attribute from parent node.</p> - </div> - <h3>Examples of setting</h3> - <h4>1. When add new child nodes, the child nodes automatically inherit the 'nocheck' attribute from parent node.</h4> - <pre xmlns=""><code>var setting = { - check: { - enable: true, - nocheckInherit: true - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Boolean</span><span class="path">setting.check.</span>nocheckInherit</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>When the parent node's 'nocheck' attribute is true, set the child nodes automatically inherit the 'nocheck' attribute. It is valid when <span class="highlight_red">[setting.check.enable = true]</span></p>
+ <p class="highlight_red">1. Only be used to initialize the nodes, easy batch operations. Please use the 'updateNode' method modify existing node.</p>
+ <p>Default: false</p>
+ </div>
+ </div>
+ <h3>Boolean Format</h3>
+ <div class="desc">
+ <p> true means: When add new child nodes, if parent node's 'nocheck' attribute is true, the child nodes automatically inherit the 'nocheck' attribute.</p>
+ <p> false means: When add new child nodes, the child nodes don't inherit the 'nocheck' attribute from parent node.</p>
+ </div>
+ <h3>Examples of setting</h3>
+ <h4>1. When add new child nodes, the child nodes automatically inherit the 'nocheck' attribute from parent node.</h4>
+ <pre xmlns=""><code>var setting = {
+ check: {
+ enable: true,
+ nocheckInherit: true
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.check.radioType.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.check.radioType.html index be867d75..bf4135b2 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.check.radioType.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.check.radioType.html @@ -1,29 +1,29 @@ -<div class="apiDetail"> -<div> - <h2><span>String</span><span class="path">setting.check.</span>radioType</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>The group about radio. It is valid when <span class="highlight_red">[setting.check.enable = true & setting.check.chkStyle = "radio"]</span></p> - <p>Default: "level"</p> - </div> - </div> - <h3>String Format</h3> - <div class="desc"> - <p>When radioType = "level", will be grouped with same level nodes which have the same parent node. -<br/>When radioType = "all", will be grouped with all nodes.</p> - <p class="highlight_red">Please note that letter case, do not change.</p> - </div> - <h3>Examples of setting</h3> - <h4>1. Set the group about radio is all nodes.</h4> - <pre xmlns=""><code>var setting = { - check: { - enable: true, - chkStyle: "radio", - radioType: "all" - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>String</span><span class="path">setting.check.</span>radioType</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>The group about radio. It is valid when <span class="highlight_red">[setting.check.enable = true & setting.check.chkStyle = "radio"]</span></p>
+ <p>Default: "level"</p>
+ </div>
+ </div>
+ <h3>String Format</h3>
+ <div class="desc">
+ <p>When radioType = "level", will be grouped with same level nodes which have the same parent node.
+<br/>When radioType = "all", will be grouped with all nodes.</p>
+ <p class="highlight_red">Please note that letter case, do not change.</p>
+ </div>
+ <h3>Examples of setting</h3>
+ <h4>1. Set the group about radio is all nodes.</h4>
+ <pre xmlns=""><code>var setting = {
+ check: {
+ enable: true,
+ chkStyle: "radio",
+ radioType: "all"
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.keep.leaf.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.keep.leaf.html index 71c573e4..ad69a88d 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.keep.leaf.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.keep.leaf.html @@ -1,28 +1,28 @@ -<div class="apiDetail"> -<div> - <h2><span>Boolean</span><span class="path">setting.data.keep.</span>leaf</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 leaf node's lock, the leaf node will lock the 'isParent' attribute to false.</p> - <p>Default: false</p> - </div> - </div> - <h3>Boolean Format</h3> - <div class="desc"> - <p> true means: lock the leaf node, and <span class="highlight_red">the node which 'isParent' attribute is false can't add child nodes</span>.</p> - <p> false means: don't lock the leaf node, and <span class="highlight_red">the node which 'isParent' attribute is false can add child nodes</span>.</p> - </div> - <h3>Examples of setting</h3> - <h4>1. lock the leaf node</h4> - <pre xmlns=""><code>var setting = { - data: { - keep: { - leaf: true - } - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Boolean</span><span class="path">setting.data.keep.</span>leaf</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 leaf node's lock, the leaf node will lock the 'isParent' attribute to false.</p>
+ <p>Default: false</p>
+ </div>
+ </div>
+ <h3>Boolean Format</h3>
+ <div class="desc">
+ <p> true means: lock the leaf node, and <span class="highlight_red">the node which 'isParent' attribute is false can't add child nodes</span>.</p>
+ <p> false means: don't lock the leaf node, and <span class="highlight_red">the node which 'isParent' attribute is false can add child nodes</span>.</p>
+ </div>
+ <h3>Examples of setting</h3>
+ <h4>1. lock the leaf node</h4>
+ <pre xmlns=""><code>var setting = {
+ data: {
+ keep: {
+ leaf: true
+ }
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.keep.parent.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.keep.parent.html index 5bab2f1e..e5372cc1 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.keep.parent.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.keep.parent.html @@ -1,28 +1,28 @@ -<div class="apiDetail"> -<div> - <h2><span>Boolean</span><span class="path">setting.data.keep.</span>parent</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 parent node's lock, the parent node will lock 'isParent' attribute to true.</p> - <p>Default: false</p> - </div> - </div> - <h3>Boolean Format</h3> - <div class="desc"> - <p> true means: lock the parent node, and <span class="highlight_red">if remove all of the parent node's child nodes, its 'isParent' attribute still keep to be true.</span>.</p> - <p> false means: don't lock the parent node, and <span class="highlight_red">if remove all of the parent node's child nodes, its 'isParent' attribute will change to be false.</span>.</p> - </div> - <h3>Examples of setting</h3> - <h4>1. lock the parent node</h4> - <pre xmlns=""><code>var setting = { - data: { - keep: { - parent: true - } - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Boolean</span><span class="path">setting.data.keep.</span>parent</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 parent node's lock, the parent node will lock 'isParent' attribute to true.</p>
+ <p>Default: false</p>
+ </div>
+ </div>
+ <h3>Boolean Format</h3>
+ <div class="desc">
+ <p> true means: lock the parent node, and <span class="highlight_red">if remove all of the parent node's child nodes, its 'isParent' attribute still keep to be true.</span>.</p>
+ <p> false means: don't lock the parent node, and <span class="highlight_red">if remove all of the parent node's child nodes, its 'isParent' attribute will change to be false.</span>.</p>
+ </div>
+ <h3>Examples of setting</h3>
+ <h4>1. lock the parent node</h4>
+ <pre xmlns=""><code>var setting = {
+ data: {
+ keep: {
+ parent: true
+ }
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.key.checked.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.key.checked.html index 2678cf25..0e5cfa80 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.key.checked.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.key.checked.html @@ -1,24 +1,24 @@ -<div class="apiDetail"> -<div> - <h2><span>String</span><span class="path">setting.data.key.</span>checked</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>The node data's attribute to save the checked state.</p> - <p>Default: "checked"</p> - <p class="highlight_red">Please don't set the other node attribute which zTree used. (e.g., checkedOld)</p> - </div> - </div> - <h3>Examples of setting</h3> - <h4>1. set the 'isChecked' attribute to save the checked state.</h4> - <pre xmlns=""><code>var setting = { - data: { - key: { - checked: "isChecked" - } - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>String</span><span class="path">setting.data.key.</span>checked</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>The node data's attribute to save the checked state.</p>
+ <p>Default: "checked"</p>
+ <p class="highlight_red">Please don't set the other node attribute which zTree used. (e.g., checkedOld)</p>
+ </div>
+ </div>
+ <h3>Examples of setting</h3>
+ <h4>1. set the 'isChecked' attribute to save the checked state.</h4>
+ <pre xmlns=""><code>var setting = {
+ data: {
+ key: {
+ checked: "isChecked"
+ }
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.key.children.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.key.children.html index 321a1a7d..bc640e3f 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.key.children.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.key.children.html @@ -1,23 +1,23 @@ -<div class="apiDetail"> -<div> - <h2><span>String</span><span class="path">setting.data.key.</span>children</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 node data's attribute to save the child nodes.</p> - <p>Default: "children"</p> - </div> - </div> - <h3>Examples of setting</h3> - <h4>1. Set the 'nodes' attribute to save the child nodes.</h4> - <pre xmlns=""><code>var setting = { - data: { - key: { - children: "nodes" - } - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>String</span><span class="path">setting.data.key.</span>children</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 node data's attribute to save the child nodes.</p>
+ <p>Default: "children"</p>
+ </div>
+ </div>
+ <h3>Examples of setting</h3>
+ <h4>1. Set the 'nodes' attribute to save the child nodes.</h4>
+ <pre xmlns=""><code>var setting = {
+ data: {
+ key: {
+ children: "nodes"
+ }
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.key.name.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.key.name.html index 0208c559..8d7406ba 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.key.name.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.key.name.html @@ -1,23 +1,23 @@ -<div class="apiDetail"> -<div> - <h2><span>String</span><span class="path">setting.data.key.</span>name</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 node data's attribute to save the node name.</p> - <p>Default: "name"</p> - </div> - </div> - <h3>Examples of setting</h3> - <h4>1. Set the 'ename' attribute to save the node name.</h4> - <pre xmlns=""><code>var setting = { - data: { - key: { - name: "ename" - } - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>String</span><span class="path">setting.data.key.</span>name</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 node data's attribute to save the node name.</p>
+ <p>Default: "name"</p>
+ </div>
+ </div>
+ <h3>Examples of setting</h3>
+ <h4>1. Set the 'ename' attribute to save the node name.</h4>
+ <pre xmlns=""><code>var setting = {
+ data: {
+ key: {
+ name: "ename"
+ }
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.key.title.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.key.title.html index 96540eb6..153aca05 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.key.title.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.key.title.html @@ -1,24 +1,24 @@ -<div class="apiDetail"> -<div> - <h2><span>String</span><span class="path">setting.data.key.</span>title</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 node data's attribute to save the 'title' attribute of node DOM. It is valid when <span class="highlight_red">[setting.view.showTitle = true]</span></p> - <p class="highlight_red">If set it to "", the title of node DOM will be same as 'setting.data.key.name' attribute.</p> - <p>Default: ""</p> - </div> - </div> - <h3>Examples of setting</h3> - <h4>1. Set the 'fullName' attribute to save the title of node DOM.</h4> - <pre xmlns=""><code>var setting = { - data: { - key: { - title: "fullName" - } - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>String</span><span class="path">setting.data.key.</span>title</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 node data's attribute to save the 'title' attribute of node DOM. It is valid when <span class="highlight_red">[setting.view.showTitle = true]</span></p>
+ <p class="highlight_red">If set it to "", the title of node DOM will be same as 'setting.data.key.name' attribute.</p>
+ <p>Default: ""</p>
+ </div>
+ </div>
+ <h3>Examples of setting</h3>
+ <h4>1. Set the 'fullName' attribute to save the title of node DOM.</h4>
+ <pre xmlns=""><code>var setting = {
+ data: {
+ key: {
+ title: "fullName"
+ }
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.key.url.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.key.url.html index e9a08cea..9b98701c 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.key.url.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.key.url.html @@ -1,24 +1,24 @@ -<div class="apiDetail"> -<div> - <h2><span>String</span><span class="path">setting.data.key.</span>url</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 node data's attribute to save the node link's url.</p> - <p class="highlight_red">Special: If the nodes's data can only use the 'url' attribute, and don't use the link to jump feature, you can modify this attribute to any nonexistent attribute.</p> - <p>Default: "url"</p> - </div> - </div> - <h3>Examples of setting</h3> - <h4>1. Set the 'xUrl' attribute to save the node link's url.</h4> - <pre xmlns=""><code>var setting = { - data: { - key: { - url: "xUrl" - } - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>String</span><span class="path">setting.data.key.</span>url</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 node data's attribute to save the node link's url.</p>
+ <p class="highlight_red">Special: If the nodes's data can only use the 'url' attribute, and don't use the link to jump feature, you can modify this attribute to any nonexistent attribute.</p>
+ <p>Default: "url"</p>
+ </div>
+ </div>
+ <h3>Examples of setting</h3>
+ <h4>1. Set the 'xUrl' attribute to save the node link's url.</h4>
+ <pre xmlns=""><code>var setting = {
+ data: {
+ key: {
+ url: "xUrl"
+ }
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.simpleData.enable.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.simpleData.enable.html index 7ea21db3..d8b9ba6c 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.simpleData.enable.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.simpleData.enable.html @@ -1,39 +1,39 @@ -<div class="apiDetail"> -<div> - <h2><span>Boolean</span><span class="path">setting.data.simpleData.</span>enable</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>Set zTree's node to accept the simple data format, when zTree is initialized or when ajax get / or when use <span class="highlight_red">addNodes</span> method.</p> - <p>Don't have to generate the complex nested data.</p> - <p>Default: false</p> - </div> - </div> - <h3>Boolean Format</h3> - <div class="desc"> - <p> true means: zTree's node accept the simple data format.</p> - <p> false means: zTree's node only accept the nested data format.</p> - <p class="highlight_red">If set it is true, you must set the other attributes in 'setting.data.simpleData'. (e.g., idKey, pIdKey, rootPId) And let the data satisfy the parent-child relationship.</p> - </div> - <h3>Examples of setting</h3> - <h4>1. use the simple data format</h4> - <pre xmlns=""><code>var setting = { - data: { - simpleData: { - enable: true, - idKey: "id", - pIdKey: "pId", - rootPId: 0, - } - } -}; -var treeNodes = [ - {"id":1, "pId":0, "name":"test1"}, - {"id":11, "pId":1, "name":"test11"}, - {"id":12, "pId":1, "name":"test12"}, - {"id":111, "pId":11, "name":"test111"} -]; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Boolean</span><span class="path">setting.data.simpleData.</span>enable</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>Set zTree's node to accept the simple data format, when zTree is initialized or when ajax get / or when use <span class="highlight_red">addNodes</span> method.</p>
+ <p>Don't have to generate the complex nested data.</p>
+ <p>Default: false</p>
+ </div>
+ </div>
+ <h3>Boolean Format</h3>
+ <div class="desc">
+ <p> true means: zTree's node accept the simple data format.</p>
+ <p> false means: zTree's node only accept the nested data format.</p>
+ <p class="highlight_red">If set it is true, you must set the other attributes in 'setting.data.simpleData'. (e.g., idKey, pIdKey, rootPId) And let the data satisfy the parent-child relationship.</p>
+ </div>
+ <h3>Examples of setting</h3>
+ <h4>1. use the simple data format</h4>
+ <pre xmlns=""><code>var setting = {
+ data: {
+ simpleData: {
+ enable: true,
+ idKey: "id",
+ pIdKey: "pId",
+ rootPId: 0,
+ }
+ }
+};
+var treeNodes = [
+ {"id":1, "pId":0, "name":"test1"},
+ {"id":11, "pId":1, "name":"test11"},
+ {"id":12, "pId":1, "name":"test12"},
+ {"id":111, "pId":11, "name":"test111"}
+];
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.simpleData.idKey.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.simpleData.idKey.html index 43df2605..2732866f 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.simpleData.idKey.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.simpleData.idKey.html @@ -1,32 +1,32 @@ -<div class="apiDetail"> -<div> - <h2><span>String</span><span class="path">setting.data.simpleData.</span>idKey</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 node data's attribute to save node data's unique identifier. It is valid when <span class="highlight_red">[setting.data.simpleData.enable = true]</span></p> - <p>Default: "id"</p> - </div> - </div> - <h3>Examples of setting</h3> - <h4>1. use the simple data format</h4> - <pre xmlns=""><code>var setting = { - data: { - simpleData: { - enable: true, - idKey: "id", - pIdKey: "pId", - rootPId: 0, - } - } -}; -var treeNodes = [ - {"id":1, "pId":0, "name":"test1"}, - {"id":11, "pId":1, "name":"test11"}, - {"id":12, "pId":1, "name":"test12"}, - {"id":111, "pId":11, "name":"test111"} -]; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>String</span><span class="path">setting.data.simpleData.</span>idKey</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 node data's attribute to save node data's unique identifier. It is valid when <span class="highlight_red">[setting.data.simpleData.enable = true]</span></p>
+ <p>Default: "id"</p>
+ </div>
+ </div>
+ <h3>Examples of setting</h3>
+ <h4>1. use the simple data format</h4>
+ <pre xmlns=""><code>var setting = {
+ data: {
+ simpleData: {
+ enable: true,
+ idKey: "id",
+ pIdKey: "pId",
+ rootPId: 0,
+ }
+ }
+};
+var treeNodes = [
+ {"id":1, "pId":0, "name":"test1"},
+ {"id":11, "pId":1, "name":"test11"},
+ {"id":12, "pId":1, "name":"test12"},
+ {"id":111, "pId":11, "name":"test111"}
+];
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.simpleData.pIdKey.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.simpleData.pIdKey.html index 8378c6e3..48e5d164 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.simpleData.pIdKey.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.simpleData.pIdKey.html @@ -1,32 +1,32 @@ -<div class="apiDetail"> -<div> - <h2><span>String</span><span class="path">setting.data.simpleData.</span>pIdKey</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 node data's attribute to save its parent node data's unique identifier. It is valid when <span class="highlight_red">[setting.data.simpleData.enable = true]</span></p> - <p>Default: "pId"</p> - </div> - </div> - <h3>Examples of setting</h3> - <h4>1. use the simple data format</h4> - <pre xmlns=""><code>var setting = { - data: { - simpleData: { - enable: true, - idKey: "id", - pIdKey: "pId", - rootPId: 0 - } - } -}; -var treeNodes = [ - {"id":1, "pId":0, "name":"test1"}, - {"id":11, "pId":1, "name":"test11"}, - {"id":12, "pId":1, "name":"test12"}, - {"id":111, "pId":11, "name":"test111"} -]; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>String</span><span class="path">setting.data.simpleData.</span>pIdKey</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 node data's attribute to save its parent node data's unique identifier. It is valid when <span class="highlight_red">[setting.data.simpleData.enable = true]</span></p>
+ <p>Default: "pId"</p>
+ </div>
+ </div>
+ <h3>Examples of setting</h3>
+ <h4>1. use the simple data format</h4>
+ <pre xmlns=""><code>var setting = {
+ data: {
+ simpleData: {
+ enable: true,
+ idKey: "id",
+ pIdKey: "pId",
+ rootPId: 0
+ }
+ }
+};
+var treeNodes = [
+ {"id":1, "pId":0, "name":"test1"},
+ {"id":11, "pId":1, "name":"test11"},
+ {"id":12, "pId":1, "name":"test12"},
+ {"id":111, "pId":11, "name":"test111"}
+];
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.simpleData.rootPId.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.simpleData.rootPId.html index 61c9bbd0..b0b1e9a9 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.simpleData.rootPId.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.data.simpleData.rootPId.html @@ -1,32 +1,32 @@ -<div class="apiDetail"> -<div> - <h2><span>String / Number</span><span class="path">setting.data.simpleData.</span>rootPId</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>Set the default value of root's 'pIdKey' specified attribute values. It is valid when <span class="highlight_red">[setting.data.simpleData.enable = true]</span></p> - <p>Default: null</p> - </div> - </div> - <h3>Examples of setting</h3> - <h4>1. use the simple data format</h4> - <pre xmlns=""><code>var setting = { - data: { - simpleData: { - enable: true, - idKey: "id", - pIdKey: "pId", - rootPId: 0 - } - } -}; -var treeNodes = [ - {"id":1, "pId":0, "name":"test1"}, - {"id":11, "pId":1, "name":"test11"}, - {"id":12, "pId":1, "name":"test12"}, - {"id":111, "pId":11, "name":"test111"} -]; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>String / Number</span><span class="path">setting.data.simpleData.</span>rootPId</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>Set the default value of root's 'pIdKey' specified attribute values. It is valid when <span class="highlight_red">[setting.data.simpleData.enable = true]</span></p>
+ <p>Default: null</p>
+ </div>
+ </div>
+ <h3>Examples of setting</h3>
+ <h4>1. use the simple data format</h4>
+ <pre xmlns=""><code>var setting = {
+ data: {
+ simpleData: {
+ enable: true,
+ idKey: "id",
+ pIdKey: "pId",
+ rootPId: 0
+ }
+ }
+};
+var treeNodes = [
+ {"id":1, "pId":0, "name":"test1"},
+ {"id":11, "pId":1, "name":"test11"},
+ {"id":12, "pId":1, "name":"test12"},
+ {"id":111, "pId":11, "name":"test111"}
+];
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.autoExpandTrigger.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.autoExpandTrigger.html index 804ee66a..d9ed4a2e 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.autoExpandTrigger.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.autoExpandTrigger.html @@ -1,29 +1,29 @@ -<div class="apiDetail"> -<div> - <h2><span>Boolean</span><span class="path">setting.edit.drag.</span>autoExpandTrigger</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>When drag node cause the parent node is automatically expanded, set whether to allow to trigger the 'onExpand' callback. It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p> - <p>Default: false</p> - </div> - </div> - <h3>Boolean Format</h3> - <div class="desc"> - <p> true means: trigger the 'onExpand' callback.</p> - <p> false means: don't trigger the 'onExpand' callback.</p> - </div> - <h3>Examples of setting</h3> - <h4>1. Set to allow to trigger the 'onExpand' callback</h4> - <pre xmlns=""><code>var setting = { - edit: { - enable: true, - drag: { - autoExpandTrigger: true - } - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Boolean</span><span class="path">setting.edit.drag.</span>autoExpandTrigger</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>When drag node cause the parent node is automatically expanded, set whether to allow to trigger the 'onExpand' callback. It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p>
+ <p>Default: false</p>
+ </div>
+ </div>
+ <h3>Boolean Format</h3>
+ <div class="desc">
+ <p> true means: trigger the 'onExpand' callback.</p>
+ <p> false means: don't trigger the 'onExpand' callback.</p>
+ </div>
+ <h3>Examples of setting</h3>
+ <h4>1. Set to allow to trigger the 'onExpand' callback</h4>
+ <pre xmlns=""><code>var setting = {
+ edit: {
+ enable: true,
+ drag: {
+ autoExpandTrigger: true
+ }
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.autoOpenTime.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.autoOpenTime.html index 74982afa..761cbb2a 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.autoOpenTime.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.autoOpenTime.html @@ -1,25 +1,25 @@ -<div class="apiDetail"> -<div> - <h2><span>Number</span><span class="path">setting.edit.drag.</span>autoOpenTime</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>Drag to the parent node, the parent node auto expand time interval. (Unit: ms) It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p> - <p>Default: 500</p> - <p class="highlight_red">Please adjust the value according to needs.</p> - </div> - </div> - <h3>Examples of setting</h3> - <h4>1. When drag node to other parent node, expand it at once.</h4> - <pre xmlns=""><code>var setting = { - edit: { - enable: true, - drag: { - autoOpenTime: 0 - } - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Number</span><span class="path">setting.edit.drag.</span>autoOpenTime</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>Drag to the parent node, the parent node auto expand time interval. (Unit: ms) It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p>
+ <p>Default: 500</p>
+ <p class="highlight_red">Please adjust the value according to needs.</p>
+ </div>
+ </div>
+ <h3>Examples of setting</h3>
+ <h4>1. When drag node to other parent node, expand it at once.</h4>
+ <pre xmlns=""><code>var setting = {
+ edit: {
+ enable: true,
+ drag: {
+ autoOpenTime: 0
+ }
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.borderMax.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.borderMax.html index edbb752b..64b44c0d 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.borderMax.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.borderMax.html @@ -1,25 +1,25 @@ -<div class="apiDetail"> -<div> - <h2><span>Number</span><span class="path">setting.edit.drag.</span>borderMax</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>When drag a node to root, the zTree's inner border width. (Unit: px) It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p> - <p>Default: 10</p> - <p class="highlight_red">Please adjust the value according to needs.</p> - </div> - </div> - <h3>Examples of setting</h3> - <h4>1. adjust the inner border width is 20px</h4> - <pre xmlns=""><code>var setting = { - edit: { - enable: true, - drag: { - borderMax: 20 - } - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Number</span><span class="path">setting.edit.drag.</span>borderMax</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>When drag a node to root, the zTree's inner border width. (Unit: px) It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p>
+ <p>Default: 10</p>
+ <p class="highlight_red">Please adjust the value according to needs.</p>
+ </div>
+ </div>
+ <h3>Examples of setting</h3>
+ <h4>1. adjust the inner border width is 20px</h4>
+ <pre xmlns=""><code>var setting = {
+ edit: {
+ enable: true,
+ drag: {
+ borderMax: 20
+ }
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.borderMin.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.borderMin.html index e8458530..fe17ed75 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.borderMin.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.borderMin.html @@ -1,25 +1,25 @@ -<div class="apiDetail"> -<div> - <h2><span>Number</span><span class="path">setting.edit.drag.</span>borderMin</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>When drag a node to root, the zTree's outer border width. (Unit: px) It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p> - <p>Default: -5</p> - <p class="highlight_red">Please adjust the value according to needs.</p> - </div> - </div> - <h3>Examples of setting</h3> - <h4>1. adjust the outer border width is 10px</h4> - <pre xmlns=""><code>var setting = { - edit: { - enable: true, - drag: { - borderMin: -10 - } - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Number</span><span class="path">setting.edit.drag.</span>borderMin</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>When drag a node to root, the zTree's outer border width. (Unit: px) It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p>
+ <p>Default: -5</p>
+ <p class="highlight_red">Please adjust the value according to needs.</p>
+ </div>
+ </div>
+ <h3>Examples of setting</h3>
+ <h4>1. adjust the outer border width is 10px</h4>
+ <pre xmlns=""><code>var setting = {
+ edit: {
+ enable: true,
+ drag: {
+ borderMin: -10
+ }
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.inner.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.inner.html index 1065df3b..e3b84d5d 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.inner.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.inner.html @@ -1,60 +1,60 @@ -<div class="apiDetail"> -<div> - <h2><span>Boolean / Function(treeId, treeNodes, targetNode)</span><span class="path">setting.edit.drag.</span>inner</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>When drag one node to the target node, set whether to allow the node to be the target node's child. It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p> - <p class="highlight_red">If the target node is root, so zTree will only trigger 'inner' and not trigger 'prev / next'.</p> - <p class="highlight_red">This function mainly for the appropriate limit drag and drop (auxiliary arrow), it requires a combination of 'prev, next' together, to achieve full functionality.</p> - <p>Default: true</p> - </div> - </div> - <h3>Boolean Format</h3> - <div class="desc"> - <p> true means: allow the node to be the target node's child.</p> - <p> false means: don't allow the node to be the target node's child.</p> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p> - <h4 class="topLine"><b>treeNodes</b><span>Array(JSON)</span></h4> - <p>A collection of the nodes which has been dragged</p> - <h4 class="topLine"><b>targetNode</b><span>JSON</span></h4> - <p>JSON data object of the target node which treeNodes are draged over.</p> - <p class="highlight_red">If the treeNodes will be root node, the targetNode = null</p> - <h4 class="topLine"><b>Return </b><span>Boolean</span></h4> - <p>return true or false</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. disable to drag the node to the target node's inner.</h4> - <pre xmlns=""><code>var setting = { - edit: { - enable: true, - drag: { - prev: true, - next: true, - inner: false - } - } -}; -......</code></pre> - <h4>2. disable to drag the node to be root node's child.</h4> - <pre xmlns=""><code>function canInner(treeId, nodes, targetNode) { - return !(targetNode && targetNode.level === 0); -} -var setting = { - edit: { - enable: true, - drag: { - prev: true, - next: true, - inner: canInner - } - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Boolean / Function(treeId, treeNodes, targetNode)</span><span class="path">setting.edit.drag.</span>inner</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>When drag one node to the target node, set whether to allow the node to be the target node's child. It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p>
+ <p class="highlight_red">If the target node is root, so zTree will only trigger 'inner' and not trigger 'prev / next'.</p>
+ <p class="highlight_red">This function mainly for the appropriate limit drag and drop (auxiliary arrow), it requires a combination of 'prev, next' together, to achieve full functionality.</p>
+ <p>Default: true</p>
+ </div>
+ </div>
+ <h3>Boolean Format</h3>
+ <div class="desc">
+ <p> true means: allow the node to be the target node's child.</p>
+ <p> false means: don't allow the node to be the target node's child.</p>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNodes</b><span>Array(JSON)</span></h4>
+ <p>A collection of the nodes which has been dragged</p>
+ <h4 class="topLine"><b>targetNode</b><span>JSON</span></h4>
+ <p>JSON data object of the target node which treeNodes are draged over.</p>
+ <p class="highlight_red">If the treeNodes will be root node, the targetNode = null</p>
+ <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
+ <p>return true or false</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. disable to drag the node to the target node's inner.</h4>
+ <pre xmlns=""><code>var setting = {
+ edit: {
+ enable: true,
+ drag: {
+ prev: true,
+ next: true,
+ inner: false
+ }
+ }
+};
+......</code></pre>
+ <h4>2. disable to drag the node to be root node's child.</h4>
+ <pre xmlns=""><code>function canInner(treeId, nodes, targetNode) {
+ return !(targetNode && targetNode.level === 0);
+}
+var setting = {
+ edit: {
+ enable: true,
+ drag: {
+ prev: true,
+ next: true,
+ inner: canInner
+ }
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.isCopy.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.isCopy.html index 1207d2ae..f44d10fb 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.isCopy.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.isCopy.html @@ -1,32 +1,32 @@ -<div class="apiDetail"> -<div> - <h2><span>Boolean</span><span class="path">setting.edit.drag.</span>isCopy</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>When drag-drop node, set whether to allow to copy node. It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p> - <p>Default: true</p> - </div> - </div> - <h3>Rules Description</h3> - <div class="desc"> - <p>1. If isCopy = true and isMove = true, when drag-drop node, press Ctrl-Key or Cmd-key can copy node, don't press Ctrl-Key or Cmd-key can move node.</p> - <p>2. If isCopy = true and isMove = false, when drag-drop node, will copy node.</p> - <p>3. If isCopy = false and isMove = true, when drag-drop node, will move node.</p> - <p>4. If isCopy = false and isMove = false, so disable to drag-drop node.</p> - </div> - <h3>Examples of setting</h3> - <h4>1. all of the drag-drop operation will copy node.</h4> - <pre xmlns=""><code>var setting = { - edit: { - enable: true, - drag: { - isCopy: true, - isMove: false - } - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Boolean</span><span class="path">setting.edit.drag.</span>isCopy</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>When drag-drop node, set whether to allow to copy node. It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p>
+ <p>Default: true</p>
+ </div>
+ </div>
+ <h3>Rules Description</h3>
+ <div class="desc">
+ <p>1. If isCopy = true and isMove = true, when drag-drop node, press Ctrl-Key or Cmd-key can copy node, don't press Ctrl-Key or Cmd-key can move node.</p>
+ <p>2. If isCopy = true and isMove = false, when drag-drop node, will copy node.</p>
+ <p>3. If isCopy = false and isMove = true, when drag-drop node, will move node.</p>
+ <p>4. If isCopy = false and isMove = false, so disable to drag-drop node.</p>
+ </div>
+ <h3>Examples of setting</h3>
+ <h4>1. all of the drag-drop operation will copy node.</h4>
+ <pre xmlns=""><code>var setting = {
+ edit: {
+ enable: true,
+ drag: {
+ isCopy: true,
+ isMove: false
+ }
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.isMove.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.isMove.html index e4a7ca3a..0b094262 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.isMove.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.isMove.html @@ -1,32 +1,32 @@ -<div class="apiDetail"> -<div> - <h2><span>Boolean</span><span class="path">setting.edit.drag.</span>isMove</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>When drag-drop node, set whether to allow to move node. It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p> - <p>Default: true</p> - </div> - </div> - <h3>Rules Description</h3> - <div class="desc"> - <p>1. If isCopy = true and isMove = true, when drag-drop node, press Ctrl-Key or Cmd-key can copy node, don't press Ctrl-Key or Cmd-key can move node.</p> - <p>2. If isCopy = true and isMove = false, when drag-drop node, will copy node.</p> - <p>3. If isCopy = false and isMove = true, when drag-drop node, will move node.</p> - <p>4. If isCopy = false and isMove = false, so disable to drag-drop node.</p> - </div> - <h3>Examples of setting</h3> - <h4>1. all of the drag-drop operation will move node.</h4> - <pre xmlns=""><code>var setting = { - edit: { - enable: true, - drag: { - isCopy: false, - isMove: true - } - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Boolean</span><span class="path">setting.edit.drag.</span>isMove</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>When drag-drop node, set whether to allow to move node. It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p>
+ <p>Default: true</p>
+ </div>
+ </div>
+ <h3>Rules Description</h3>
+ <div class="desc">
+ <p>1. If isCopy = true and isMove = true, when drag-drop node, press Ctrl-Key or Cmd-key can copy node, don't press Ctrl-Key or Cmd-key can move node.</p>
+ <p>2. If isCopy = true and isMove = false, when drag-drop node, will copy node.</p>
+ <p>3. If isCopy = false and isMove = true, when drag-drop node, will move node.</p>
+ <p>4. If isCopy = false and isMove = false, so disable to drag-drop node.</p>
+ </div>
+ <h3>Examples of setting</h3>
+ <h4>1. all of the drag-drop operation will move node.</h4>
+ <pre xmlns=""><code>var setting = {
+ edit: {
+ enable: true,
+ drag: {
+ isCopy: false,
+ isMove: true
+ }
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.maxShowNodeNum.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.maxShowNodeNum.html index dbc3ae47..7ae49091 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.maxShowNodeNum.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.maxShowNodeNum.html @@ -1,25 +1,25 @@ -<div class="apiDetail"> -<div> - <h2><span>Number</span><span class="path">setting.edit.drag.</span>maxShowNodeNum</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>When dragging more than one sibling node, the floating layer shows the maximum number of nodes. zTree using '...' instead of redundant nodes. It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p> - <p>Default: 5</p> - <p class="highlight_red">Please adjust the value according to needs.</p> - </div> - </div> - <h3>Examples of setting</h3> - <h4>1. Set the maximum number is 10</h4> - <pre xmlns=""><code>var setting = { - edit: { - enable: true, - drag: { - maxShowNodeNum: 10 - } - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Number</span><span class="path">setting.edit.drag.</span>maxShowNodeNum</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>When dragging more than one sibling node, the floating layer shows the maximum number of nodes. zTree using '...' instead of redundant nodes. It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p>
+ <p>Default: 5</p>
+ <p class="highlight_red">Please adjust the value according to needs.</p>
+ </div>
+ </div>
+ <h3>Examples of setting</h3>
+ <h4>1. Set the maximum number is 10</h4>
+ <pre xmlns=""><code>var setting = {
+ edit: {
+ enable: true,
+ drag: {
+ maxShowNodeNum: 10
+ }
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.minMoveSize.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.minMoveSize.html index 8270a993..4f0cdedb 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.minMoveSize.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.minMoveSize.html @@ -1,25 +1,25 @@ -<div class="apiDetail"> -<div> - <h2><span>Number</span><span class="path">setting.edit.drag.</span>minMoveSize</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>The minimum offset which used to determine the drag operator start. (Unit: px) It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p> - <p class="highlight_red">Please adjust the value according to needs. Note: If it is too small, will easily lead to misoperation when you click mouse.</p> - <p>Default: 5</p> - </div> - </div> - <h3>Examples of setting</h3> - <h4>1. Set the minimum offset is 10px.</h4> - <pre xmlns=""><code>var setting = { - edit: { - enable: true, - drag: { - minMoveSize: 10 - } - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Number</span><span class="path">setting.edit.drag.</span>minMoveSize</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>The minimum offset which used to determine the drag operator start. (Unit: px) It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p>
+ <p class="highlight_red">Please adjust the value according to needs. Note: If it is too small, will easily lead to misoperation when you click mouse.</p>
+ <p>Default: 5</p>
+ </div>
+ </div>
+ <h3>Examples of setting</h3>
+ <h4>1. Set the minimum offset is 10px.</h4>
+ <pre xmlns=""><code>var setting = {
+ edit: {
+ enable: true,
+ drag: {
+ minMoveSize: 10
+ }
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.next.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.next.html index 82eb6fba..41cf6f01 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.next.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.next.html @@ -1,59 +1,59 @@ -<div class="apiDetail"> -<div> - <h2><span>Boolean / Function(treeId, treeNodes, targetNode)</span><span class="path">setting.edit.drag.</span>next</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>When drag one node to the target node, set whether to allow the node to be the target node's next sibling. It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p> - <p class="highlight_red">If the target node is root, so zTree will only trigger 'inner' and not trigger 'prev / next'.</p> - <p class="highlight_red">This function mainly for the appropriate limit drag and drop (auxiliary arrow), it requires a combination of 'prev, inner' together, to achieve full functionality.</p> - <p>Default: true</p> - </div> - </div> - <h3>Boolean Format</h3> - <div class="desc"> - <p> true means: allow the node to be the target node's next sibling.</p> - <p> false means: don't allow the node to be the target node's next sibling.</p> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p> - <h4 class="topLine"><b>treeNodes</b><span>Array(JSON)</span></h4> - <p>A collection of the nodes which has been dragged</p> - <h4 class="topLine"><b>targetNode</b><span>JSON</span></h4> - <p>JSON data object of the target node which treeNodes are draged over.</p> - <h4 class="topLine"><b>Return </b><span>Boolean</span></h4> - <p>return true or false</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. disable to drag the node to the target node's next sibling.</h4> - <pre xmlns=""><code>var setting = { - edit: { - enable: true, - drag: { - prev: true, - next: false, - inner: true - } - } -}; -......</code></pre> - <h4>2. disable to drag the node to be all of the parent nodes's next sibling.</h4> - <pre xmlns=""><code>function canNext(treeId, nodes, targetNode) { - return !targetNode.isParent; -} -var setting = { - edit: { - enable: true, - drag: { - prev: true, - next: canNext, - inner: true - } - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Boolean / Function(treeId, treeNodes, targetNode)</span><span class="path">setting.edit.drag.</span>next</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>When drag one node to the target node, set whether to allow the node to be the target node's next sibling. It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p>
+ <p class="highlight_red">If the target node is root, so zTree will only trigger 'inner' and not trigger 'prev / next'.</p>
+ <p class="highlight_red">This function mainly for the appropriate limit drag and drop (auxiliary arrow), it requires a combination of 'prev, inner' together, to achieve full functionality.</p>
+ <p>Default: true</p>
+ </div>
+ </div>
+ <h3>Boolean Format</h3>
+ <div class="desc">
+ <p> true means: allow the node to be the target node's next sibling.</p>
+ <p> false means: don't allow the node to be the target node's next sibling.</p>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNodes</b><span>Array(JSON)</span></h4>
+ <p>A collection of the nodes which has been dragged</p>
+ <h4 class="topLine"><b>targetNode</b><span>JSON</span></h4>
+ <p>JSON data object of the target node which treeNodes are draged over.</p>
+ <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
+ <p>return true or false</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. disable to drag the node to the target node's next sibling.</h4>
+ <pre xmlns=""><code>var setting = {
+ edit: {
+ enable: true,
+ drag: {
+ prev: true,
+ next: false,
+ inner: true
+ }
+ }
+};
+......</code></pre>
+ <h4>2. disable to drag the node to be all of the parent nodes's next sibling.</h4>
+ <pre xmlns=""><code>function canNext(treeId, nodes, targetNode) {
+ return !targetNode.isParent;
+}
+var setting = {
+ edit: {
+ enable: true,
+ drag: {
+ prev: true,
+ next: canNext,
+ inner: true
+ }
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.prev.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.prev.html index de6f0c82..cbc89022 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.prev.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.prev.html @@ -1,59 +1,59 @@ -<div class="apiDetail"> -<div> - <h2><span>Boolean / Function(treeId, treeNodes, targetNode)</span><span class="path">setting.edit.drag.</span>prev</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>When drag one node to the target node, set whether to allow the node to be the target node's previous sibling. It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p> - <p class="highlight_red">If the target node is root, so zTree will only trigger 'inner' and not trigger 'prev / next'.</p> - <p class="highlight_red">This function mainly for the appropriate limit drag and drop (auxiliary arrow), it requires a combination of 'next, inner' together, to achieve full functionality.</p> - <p>Default: true</p> - </div> - </div> - <h3>Boolean Format</h3> - <div class="desc"> - <p> true means: allow the node to be the target node's previous sibling.</p> - <p> false means: don't allow the node to be the target node's previous sibling.</p> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p> - <h4 class="topLine"><b>treeNodes</b><span>Array(JSON)</span></h4> - <p>A collection of the nodes which has been dragged</p> - <h4 class="topLine"><b>targetNode</b><span>JSON</span></h4> - <p>JSON data object of the target node which treeNodes are draged over.</p> - <h4 class="topLine"><b>Return </b><span>Boolean</span></h4> - <p>return true or false</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. disable to drag the node to the target node's previous sibling.</h4> - <pre xmlns=""><code>var setting = { - edit: { - enable: true, - drag: { - prev: false, - next: true, - inner: true - } - } -}; -......</code></pre> - <h4>2. disable to drag the node to be all of the parent nodes's previous sibling.</h4> - <pre xmlns=""><code>function canPrev(treeId, nodes, targetNode) { - return !targetNode.isParent; -} -var setting = { - edit: { - enable: true, - drag: { - prev: canPrev, - next: true, - inner: true - } - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Boolean / Function(treeId, treeNodes, targetNode)</span><span class="path">setting.edit.drag.</span>prev</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>When drag one node to the target node, set whether to allow the node to be the target node's previous sibling. It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p>
+ <p class="highlight_red">If the target node is root, so zTree will only trigger 'inner' and not trigger 'prev / next'.</p>
+ <p class="highlight_red">This function mainly for the appropriate limit drag and drop (auxiliary arrow), it requires a combination of 'next, inner' together, to achieve full functionality.</p>
+ <p>Default: true</p>
+ </div>
+ </div>
+ <h3>Boolean Format</h3>
+ <div class="desc">
+ <p> true means: allow the node to be the target node's previous sibling.</p>
+ <p> false means: don't allow the node to be the target node's previous sibling.</p>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNodes</b><span>Array(JSON)</span></h4>
+ <p>A collection of the nodes which has been dragged</p>
+ <h4 class="topLine"><b>targetNode</b><span>JSON</span></h4>
+ <p>JSON data object of the target node which treeNodes are draged over.</p>
+ <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
+ <p>return true or false</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. disable to drag the node to the target node's previous sibling.</h4>
+ <pre xmlns=""><code>var setting = {
+ edit: {
+ enable: true,
+ drag: {
+ prev: false,
+ next: true,
+ inner: true
+ }
+ }
+};
+......</code></pre>
+ <h4>2. disable to drag the node to be all of the parent nodes's previous sibling.</h4>
+ <pre xmlns=""><code>function canPrev(treeId, nodes, targetNode) {
+ return !targetNode.isParent;
+}
+var setting = {
+ edit: {
+ enable: true,
+ drag: {
+ prev: canPrev,
+ next: true,
+ inner: true
+ }
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.editNameSelectAll.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.editNameSelectAll.html index a030359d..e667beae 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.editNameSelectAll.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.editNameSelectAll.html @@ -1,27 +1,27 @@ -<div class="apiDetail"> -<div> - <h2><span>Boolean</span><span class="path">setting.edit.</span>editNameSelectAll</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>When edit node's name, the text in input is selected or unselected. It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p> - <p>Default: false</p> - </div> - </div> - <h3>Boolean Format</h3> - <div class="desc"> - <p> true means: when show the input, the text in input is selected</p> - <p> false means: when show the input, the text in input is not selected</p> - </div> - <h3>Examples of setting</h3> - <h4>1. When edit node's name, the text in input is selected.</h4> - <pre xmlns=""><code>var setting = { - edit: { - enable: true, - editNameSelectAll: true - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Boolean</span><span class="path">setting.edit.</span>editNameSelectAll</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>When edit node's name, the text in input is selected or unselected. It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p>
+ <p>Default: false</p>
+ </div>
+ </div>
+ <h3>Boolean Format</h3>
+ <div class="desc">
+ <p> true means: when show the input, the text in input is selected</p>
+ <p> false means: when show the input, the text in input is not selected</p>
+ </div>
+ <h3>Examples of setting</h3>
+ <h4>1. When edit node's name, the text in input is selected.</h4>
+ <pre xmlns=""><code>var setting = {
+ edit: {
+ enable: true,
+ editNameSelectAll: true
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.enable.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.enable.html index ec9d2b31..2717045b 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.enable.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.enable.html @@ -1,39 +1,39 @@ -<div class="apiDetail"> -<div> - <h2><span>Boolean</span><span class="path">setting.edit.</span>enable</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>Set zTree is in edit mode</p> - <p class="highlight_red">Please set this attribute before zTree initialization. If you need to change the edit mode after the initialization, please use zTreeObj.setEditable() method.</p> - <p>Default: false</p> - </div> - </div> - <h3>Boolean Format</h3> - <div class="desc"> - <p> true means: zTree is in edit mode.</p> - <p> false means: zTree is not in edit mode.</p> - </div> - <h3>Editing Rules Description</h3> - <div class="desc"> - <p>1. When click the node, it will not open '<span class="highlight_red">node.url</span>' specified URL. -<br/>2. Support for dynamic tree editing. -<br/>3. You can drag-drop nodes, and support drag-drop nodes between multiple trees. -<br/>4. Support use drag-drop to copy or move the node. (Reference: <span class="highlight_red">setting.edit.drag.isCopy / setting.edit.drag.isMove</span>) -<br/>5. You can use the Edit button to modify the name attribute. -<br/>6. You can use the Remove button to remove the node. -<br/> - </p> - <p class="highlight_red">Please note that letter case, do not change.</p> - </div> - <h3>Examples of setting</h3> - <h4>1. edit the tree</h4> - <pre xmlns=""><code>var setting = { - edit: { - enable: true - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Boolean</span><span class="path">setting.edit.</span>enable</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>Set zTree is in edit mode</p>
+ <p class="highlight_red">Please set this attribute before zTree initialization. If you need to change the edit mode after the initialization, please use zTreeObj.setEditable() method.</p>
+ <p>Default: false</p>
+ </div>
+ </div>
+ <h3>Boolean Format</h3>
+ <div class="desc">
+ <p> true means: zTree is in edit mode.</p>
+ <p> false means: zTree is not in edit mode.</p>
+ </div>
+ <h3>Editing Rules Description</h3>
+ <div class="desc">
+ <p>1. When click the node, it will not open '<span class="highlight_red">node.url</span>' specified URL.
+<br/>2. Support for dynamic tree editing.
+<br/>3. You can drag-drop nodes, and support drag-drop nodes between multiple trees.
+<br/>4. Support use drag-drop to copy or move the node. (Reference: <span class="highlight_red">setting.edit.drag.isCopy / setting.edit.drag.isMove</span>)
+<br/>5. You can use the Edit button to modify the name attribute.
+<br/>6. You can use the Remove button to remove the node.
+<br/>
+ </p>
+ <p class="highlight_red">Please note that letter case, do not change.</p>
+ </div>
+ <h3>Examples of setting</h3>
+ <h4>1. edit the tree</h4>
+ <pre xmlns=""><code>var setting = {
+ edit: {
+ enable: true
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.removeTitle.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.removeTitle.html index e2175279..0cbc49a7 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.removeTitle.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.removeTitle.html @@ -1,48 +1,48 @@ -<div class="apiDetail"> -<div> - <h2><span>String / Function(treeId, treeNode)</span><span class="path">setting.edit.</span>removeTitle</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>the title of the remove button DOM. It is valid when <span class="highlight_red">[setting.edit.enable = true & setting.edit.showRemoveBtn = true]</span></p> - <p>Default: "remove"</p> - </div> - </div> - <h3>String Format</h3> - <div class="desc"> - <p>When the mouse over the remove button, the browser auto pop-up message content.</p> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p> - <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which show the remove button</p> - <h4 class="topLine"><b>Return </b><span>String</span></h4> - <p>Return value is same as 'String Format'</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. Set title is 'remove the node' about all the remove button</h4> - <pre xmlns=""><code>var setting = { - edit: { - enable: true, - showRemoveBtn: true, - removeTitle: "remove the node" - } -}; -......</code></pre> - <h4>2. Set title is 'remove the parent node' about the parent node, and is 'remove the leaf node' about the leaf node</h4> - <pre xmlns=""><code>function setRemoveTitle(treeId, treeNode) { - return treeNode.isParent ? "remove the parent node":"remove the leaf node"; -} -var setting = { - edit: { - enable: true, - showRemoveBtn: true, - removeTitle: setRemoveTitle - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>String / Function(treeId, treeNode)</span><span class="path">setting.edit.</span>removeTitle</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>the title of the remove button DOM. It is valid when <span class="highlight_red">[setting.edit.enable = true & setting.edit.showRemoveBtn = true]</span></p>
+ <p>Default: "remove"</p>
+ </div>
+ </div>
+ <h3>String Format</h3>
+ <div class="desc">
+ <p>When the mouse over the remove button, the browser auto pop-up message content.</p>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which show the remove button</p>
+ <h4 class="topLine"><b>Return </b><span>String</span></h4>
+ <p>Return value is same as 'String Format'</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. Set title is 'remove the node' about all the remove button</h4>
+ <pre xmlns=""><code>var setting = {
+ edit: {
+ enable: true,
+ showRemoveBtn: true,
+ removeTitle: "remove the node"
+ }
+};
+......</code></pre>
+ <h4>2. Set title is 'remove the parent node' about the parent node, and is 'remove the leaf node' about the leaf node</h4>
+ <pre xmlns=""><code>function setRemoveTitle(treeId, treeNode) {
+ return treeNode.isParent ? "remove the parent node":"remove the leaf node";
+}
+var setting = {
+ edit: {
+ enable: true,
+ showRemoveBtn: true,
+ removeTitle: setRemoveTitle
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.renameTitle.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.renameTitle.html index b8ce5a6b..f9aecb98 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.renameTitle.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.renameTitle.html @@ -1,48 +1,48 @@ -<div class="apiDetail"> -<div> - <h2><span>String / Function(treeId, treeNode)</span><span class="path">setting.edit.</span>renameTitle</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>the title of the rename button DOM. It is valid when <span class="highlight_red">[setting.edit.enable = true & setting.edit.showRenameBtn = true]</span></p> - <p>Default: "rename"</p> - </div> - </div> - <h3>String Format</h3> - <div class="desc"> - <p>When the mouse over the rename button, the browser auto pop-up message content.</p> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p> - <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which show the rename button</p> - <h4 class="topLine"><b>Return </b><span>String</span></h4> - <p>return value is same as 'String Format'</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. Set title is 'rename the node' about all the rename button</h4> - <pre xmlns=""><code>var setting = { - edit: { - enable: true, - showRenameBtn: true, - renameTitle: "rename the node" - } -}; -......</code></pre> - <h4>2. Set title is 'rename the parent node' about the parent node, and is 'rename the leaf node' about the leaf node</h4> - <pre xmlns=""><code>function setRenameTitle(treeId, treeNode) { - return treeNode.isParent ? "rename the parent node":"rename the leaf node"; -} -var setting = { - edit: { - enable: true, - showRenameBtn: true, - renameTitle: setRenameTitle - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>String / Function(treeId, treeNode)</span><span class="path">setting.edit.</span>renameTitle</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>the title of the rename button DOM. It is valid when <span class="highlight_red">[setting.edit.enable = true & setting.edit.showRenameBtn = true]</span></p>
+ <p>Default: "rename"</p>
+ </div>
+ </div>
+ <h3>String Format</h3>
+ <div class="desc">
+ <p>When the mouse over the rename button, the browser auto pop-up message content.</p>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which show the rename button</p>
+ <h4 class="topLine"><b>Return </b><span>String</span></h4>
+ <p>return value is same as 'String Format'</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. Set title is 'rename the node' about all the rename button</h4>
+ <pre xmlns=""><code>var setting = {
+ edit: {
+ enable: true,
+ showRenameBtn: true,
+ renameTitle: "rename the node"
+ }
+};
+......</code></pre>
+ <h4>2. Set title is 'rename the parent node' about the parent node, and is 'rename the leaf node' about the leaf node</h4>
+ <pre xmlns=""><code>function setRenameTitle(treeId, treeNode) {
+ return treeNode.isParent ? "rename the parent node":"rename the leaf node";
+}
+var setting = {
+ edit: {
+ enable: true,
+ showRenameBtn: true,
+ renameTitle: setRenameTitle
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.showRemoveBtn.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.showRemoveBtn.html index f0f1fe15..d0afcec2 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.showRemoveBtn.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.showRemoveBtn.html @@ -1,50 +1,50 @@ -<div class="apiDetail"> -<div> - <h2><span>Boolean / Function(treeId, treeNode)</span><span class="path">setting.edit.</span>showRemoveBtn</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>Set to show or hide the remove button. It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p> - <p>When you click the remove button:</p> - <p>1. zTree will trigger the <span class="highlight_red">setting.callback.beforeRemove</span> callback, and you can decide whether to allow delete.</p> - <p>2. If you don't set the 'beforeRemove' or the 'beforeRemove' callback return true, so zTree will trigger the <span class="highlight_red">setting.callback.onRemove</span> callback after remove the node.</p> - <p>Default: true</p> - </div> - </div> - <h3>Boolean Format</h3> - <div class="desc"> - <p> true means: show the remove button</p> - <p> false means: hide the remove button</p> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p> - <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which show the remove button</p> - <h4 class="topLine"><b>Return </b><span>Boolean</span></h4> - <p>Return value is same as 'Boolean Format'</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. Hide the remove button</h4> - <pre xmlns=""><code>var setting = { - edit: { - enable: true, - showRemoveBtn: false - } -}; -......</code></pre> - <h4>2. Hide the remove button of parent node</h4> - <pre xmlns=""><code>function setRemoveBtn(treeId, treeNode) { - return !treeNode.isParent; -} -var setting = { - edit: { - enable: true, - showRemoveBtn: setRemoveBtn - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Boolean / Function(treeId, treeNode)</span><span class="path">setting.edit.</span>showRemoveBtn</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>Set to show or hide the remove button. It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p>
+ <p>When you click the remove button:</p>
+ <p>1. zTree will trigger the <span class="highlight_red">setting.callback.beforeRemove</span> callback, and you can decide whether to allow delete.</p>
+ <p>2. If you don't set the 'beforeRemove' or the 'beforeRemove' callback return true, so zTree will trigger the <span class="highlight_red">setting.callback.onRemove</span> callback after remove the node.</p>
+ <p>Default: true</p>
+ </div>
+ </div>
+ <h3>Boolean Format</h3>
+ <div class="desc">
+ <p> true means: show the remove button</p>
+ <p> false means: hide the remove button</p>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which show the remove button</p>
+ <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
+ <p>Return value is same as 'Boolean Format'</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. Hide the remove button</h4>
+ <pre xmlns=""><code>var setting = {
+ edit: {
+ enable: true,
+ showRemoveBtn: false
+ }
+};
+......</code></pre>
+ <h4>2. Hide the remove button of parent node</h4>
+ <pre xmlns=""><code>function setRemoveBtn(treeId, treeNode) {
+ return !treeNode.isParent;
+}
+var setting = {
+ edit: {
+ enable: true,
+ showRemoveBtn: setRemoveBtn
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.showRenameBtn.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.showRenameBtn.html index 4fe2f581..5f7c87d9 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.showRenameBtn.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.showRenameBtn.html @@ -1,52 +1,52 @@ -<div class="apiDetail"> -<div> - <h2><span>Boolean / Function(treeId, treeNode)</span><span class="path">setting.edit.</span>showRenameBtn</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>Set to show or hide the rename button. It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p> - <p>When you click the rename button:</p> - <p>1. Click the rename button, you can rename the node.</p> - <p>2. After rename operation (the input DOM blur or press the Enter Key), zTree will trigger the <span class="highlight_red">setting.callback.beforeRename</span> callback, and you can decide whether to allow rename.</p> - <p>3. If the 'beforeRename' callback return false, so zTree will keep the edit status. (Press the ESC key, can be restored to the original state.</p> - <p>4. If you don't set the 'beforeRename' or the 'beforeRename' callback return true, so zTree will trigger the <span class="highlight_red">setting.callback.onRename</span> callback after rename the node.</p> - <p>Default: true</p> - </div> - </div> - <h3>Boolean Format</h3> - <div class="desc"> - <p> true means: show the rename button</p> - <p> false means: hide the rename button</p> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p> - <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which show the rename button</p> - <h4 class="topLine"><b>Return </b><span>Boolean</span></h4> - <p>Return value is same as 'Boolean Format'</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. Hide the rename button</h4> - <pre xmlns=""><code>var setting = { - edit: { - enable: true, - showRenameBtn: false - } -}; -......</code></pre> - <h4>2. Hide the rename button of parent node</h4> - <pre xmlns=""><code>function setRenameBtn(treeId, treeNode) { - return !treeNode.isParent; -} -var setting = { - edit: { - enable: true, - showRenameBtn: setRenameBtn - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Boolean / Function(treeId, treeNode)</span><span class="path">setting.edit.</span>showRenameBtn</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>Set to show or hide the rename button. It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p>
+ <p>When you click the rename button:</p>
+ <p>1. Click the rename button, you can rename the node.</p>
+ <p>2. After rename operation (the input DOM blur or press the Enter Key), zTree will trigger the <span class="highlight_red">setting.callback.beforeRename</span> callback, and you can decide whether to allow rename.</p>
+ <p>3. If the 'beforeRename' callback return false, so zTree will keep the edit status. (Press the ESC key, can be restored to the original state.</p>
+ <p>4. If you don't set the 'beforeRename' or the 'beforeRename' callback return true, so zTree will trigger the <span class="highlight_red">setting.callback.onRename</span> callback after rename the node.</p>
+ <p>Default: true</p>
+ </div>
+ </div>
+ <h3>Boolean Format</h3>
+ <div class="desc">
+ <p> true means: show the rename button</p>
+ <p> false means: hide the rename button</p>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which show the rename button</p>
+ <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
+ <p>Return value is same as 'Boolean Format'</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. Hide the rename button</h4>
+ <pre xmlns=""><code>var setting = {
+ edit: {
+ enable: true,
+ showRenameBtn: false
+ }
+};
+......</code></pre>
+ <h4>2. Hide the rename button of parent node</h4>
+ <pre xmlns=""><code>function setRenameBtn(treeId, treeNode) {
+ return !treeNode.isParent;
+}
+var setting = {
+ edit: {
+ enable: true,
+ showRenameBtn: setRenameBtn
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.treeId.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.treeId.html index e4b04b37..a54febfd 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.treeId.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.treeId.html @@ -1,14 +1,14 @@ -<div class="apiDetail"> -<div> - <h2><span>String</span><span class="path">setting.</span>treeId</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>zTree unique identifier. After the initialization, it equals to the id attribute value of the user-defined zTree container.</p> - <p class="highlight_red">Do not initialize or modify it, it is an internal argument.</p> - </div> - </div> - -</div> +<div class="apiDetail">
+<div>
+ <h2><span>String</span><span class="path">setting.</span>treeId</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>zTree unique identifier. After the initialization, it equals to the id attribute value of the user-defined zTree container.</p>
+ <p class="highlight_red">Do not initialize or modify it, it is an internal argument.</p>
+ </div>
+ </div>
+
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.treeObj.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.treeObj.html index 30eb66c4..faca1564 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.treeObj.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.treeObj.html @@ -1,14 +1,14 @@ -<div class="apiDetail"> -<div> - <h2><span>Object</span><span class="path">setting.</span>treeObj</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>zTree DOM's jQuery object, the main function: easy to internal operations.</p> - <p class="highlight_red">Do not initialize or modify it, it is an internal argument.</p> - </div> - </div> - -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Object</span><span class="path">setting.</span>treeObj</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>zTree DOM's jQuery object, the main function: easy to internal operations.</p>
+ <p class="highlight_red">Do not initialize or modify it, it is an internal argument.</p>
+ </div>
+ </div>
+
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.addDiyDom.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.addDiyDom.html index fa22befd..3967f4a2 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.addDiyDom.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.addDiyDom.html @@ -1,40 +1,40 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(treeId, treeNode)</span><span class="path">setting.view.</span>addDiyDom</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>This function used to display the custom control on the node.</p> - <p class="highlight_red">1. If you have huge node data, please note: this function will affect the initialization performance. If not required, it is recommended not to use this function.</p> - <p class="highlight_red">2. This function is an advanced application, please make sure that a better understanding of zTree before you use it.</p> - <p>Default: null</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p> - <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which display the custom control.</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. Display button in all nodes.</h4> - <pre xmlns=""><code>var setting = { - view: { - addDiyDom: addDiyDom - } -}; -function addDiyDom(treeId, treeNode) { - var aObj = $("#" + treeNode.tId + "_a"); - if ($("#diyBtn_"+treeNode.id).length>0) return; - var editStr = "<span id='diyBtn_space_" +treeNode.id+ "' > </span>" - + "<button type='button' class='diyBtn1' id='diyBtn_" + treeNode.id - + "' title='"+treeNode.name+"' onfocus='this.blur();'></button>"; - aObj.append(editStr); - var btn = $("#diyBtn_"+treeNode.id); - if (btn) btn.bind("click", function(){alert("diy Button for " + treeNode.name);}); -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(treeId, treeNode)</span><span class="path">setting.view.</span>addDiyDom</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>This function used to display the custom control on the node.</p>
+ <p class="highlight_red">1. If you have huge node data, please note: this function will affect the initialization performance. If not required, it is recommended not to use this function.</p>
+ <p class="highlight_red">2. This function is an advanced application, please make sure that a better understanding of zTree before you use it.</p>
+ <p>Default: null</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which display the custom control.</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. Display button in all nodes.</h4>
+ <pre xmlns=""><code>var setting = {
+ view: {
+ addDiyDom: addDiyDom
+ }
+};
+function addDiyDom(treeId, treeNode) {
+ var aObj = $("#" + treeNode.tId + "_a");
+ if ($("#diyBtn_"+treeNode.id).length>0) return;
+ var editStr = "<span id='diyBtn_space_" +treeNode.id+ "' > </span>"
+ + "<button type='button' class='diyBtn1' id='diyBtn_" + treeNode.id
+ + "' title='"+treeNode.name+"' onfocus='this.blur();'></button>";
+ aObj.append(editStr);
+ var btn = $("#diyBtn_"+treeNode.id);
+ if (btn) btn.bind("click", function(){alert("diy Button for " + treeNode.name);});
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.addHoverDom.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.addHoverDom.html index 1ea8b6d9..f490a209 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.addHoverDom.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.addHoverDom.html @@ -1,45 +1,45 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(treeId, treeNode)</span><span class="path">setting.view.</span>addHoverDom</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>Used to display custom control when mouse move over the node. (e.g. the rename and remove button)</p> - <p class="highlight_red">If you use this function, so must set <span class="highlight_red">setting.view.removeHoverDom</span>, please make sure that a better understanding of zTree before you use it.</p> - <p>Default: null</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p> - <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which need to display the custom control.</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. Display a button when mouse move over the node, and hide the button when mouse move out.</h4> - <pre xmlns=""><code>var setting = { - view: { - addHoverDom: addHoverDom, - removeHoverDom: removeHoverDom, - ...... - } -}; -function addHoverDom(treeId, treeNode) { - var aObj = $("#" + treeNode.tId + "_a"); - if ($("#diyBtn_"+treeNode.id).length>0) return; - var editStr = "<span id='diyBtn_space_" +treeNode.id+ "' > </span>" - + "<button type='button' class='diyBtn1' id='diyBtn_" + treeNode.id - + "' title='"+treeNode.name+"' onfocus='this.blur();'></button>"; - aObj.append(editStr); - var btn = $("#diyBtn_"+treeNode.id); - if (btn) btn.bind("click", function(){alert("diy Button for " + treeNode.name);}); -}; -function removeHoverDom(treeId, treeNode) { - $("#diyBtn_"+treeNode.id).unbind().remove(); - $("#diyBtn_space_" +treeNode.id).unbind().remove(); -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(treeId, treeNode)</span><span class="path">setting.view.</span>addHoverDom</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>Used to display custom control when mouse move over the node. (e.g. the rename and remove button)</p>
+ <p class="highlight_red">If you use this function, so must set <span class="highlight_red">setting.view.removeHoverDom</span>, please make sure that a better understanding of zTree before you use it.</p>
+ <p>Default: null</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which need to display the custom control.</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. Display a button when mouse move over the node, and hide the button when mouse move out.</h4>
+ <pre xmlns=""><code>var setting = {
+ view: {
+ addHoverDom: addHoverDom,
+ removeHoverDom: removeHoverDom,
+ ......
+ }
+};
+function addHoverDom(treeId, treeNode) {
+ var aObj = $("#" + treeNode.tId + "_a");
+ if ($("#diyBtn_"+treeNode.id).length>0) return;
+ var editStr = "<span id='diyBtn_space_" +treeNode.id+ "' > </span>"
+ + "<button type='button' class='diyBtn1' id='diyBtn_" + treeNode.id
+ + "' title='"+treeNode.name+"' onfocus='this.blur();'></button>";
+ aObj.append(editStr);
+ var btn = $("#diyBtn_"+treeNode.id);
+ if (btn) btn.bind("click", function(){alert("diy Button for " + treeNode.name);});
+};
+function removeHoverDom(treeId, treeNode) {
+ $("#diyBtn_"+treeNode.id).unbind().remove();
+ $("#diyBtn_space_" +treeNode.id).unbind().remove();
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.autoCancelSelected.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.autoCancelSelected.html index 44ab90d0..8d529ca2 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.autoCancelSelected.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.autoCancelSelected.html @@ -1,27 +1,27 @@ -<div class="apiDetail"> -<div> - <h2><span>Boolean</span><span class="path">setting.view.</span>autoCancelSelected</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>When click the selected node while pressing the Ctrl-key or Cmd-key, allow to cancel selected the node.</p> - <p class="highlight_red">If you don't need this function, please set to false.</p> - <p>Default: true</p> - </div> - </div> - <h3>Boolean Format</h3> - <div class="desc"> - <p> true means: press the Ctrl-key or Cmd-key, can cancel selected node.</p> - <p> false means: press the Ctrl-key or Cmd-key, can't cancel selected node.</p> - </div> - <h3>Examples of setting</h3> - <h4>1. Press the Ctrl-key or Cmd-key, can't cancel selected node.</h4> - <pre xmlns=""><code>var setting = { - view: { - autoCancelSelected: false - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Boolean</span><span class="path">setting.view.</span>autoCancelSelected</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>When click the selected node while pressing the Ctrl-key or Cmd-key, allow to cancel selected the node.</p>
+ <p class="highlight_red">If you don't need this function, please set to false.</p>
+ <p>Default: true</p>
+ </div>
+ </div>
+ <h3>Boolean Format</h3>
+ <div class="desc">
+ <p> true means: press the Ctrl-key or Cmd-key, can cancel selected node.</p>
+ <p> false means: press the Ctrl-key or Cmd-key, can't cancel selected node.</p>
+ </div>
+ <h3>Examples of setting</h3>
+ <h4>1. Press the Ctrl-key or Cmd-key, can't cancel selected node.</h4>
+ <pre xmlns=""><code>var setting = {
+ view: {
+ autoCancelSelected: false
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.dblClickExpand.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.dblClickExpand.html index 25176240..6b6fd550 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.dblClickExpand.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.dblClickExpand.html @@ -1,45 +1,45 @@ -<div class="apiDetail"> -<div> - <h2><span>Boolean / Function(treeId, treeNode)</span><span class="path">setting.view.</span>dblClickExpand</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>When double-click the parent node, 'dblClickExpand' is used to decide whether to expand the parent node.</p> - <p>Default: true</p> - </div> - </div> - <h3>Boolean Format</h3> - <div class="desc"> - <p> true means: When double-click the parent node, zTree will expand the parent node.</p> - <p> false means: When double-click the parent node, zTree will not expand the parent node.</p> - </div> - <h3>Function Pamameter Descriptions</h3> - <div class="desc"> - <h4><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p> - <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which be double-clicked.</p> - <h4 class="topLine"><b>Return </b><span>Boolean</span></h4> - <p>Return value is same as 'Boolean Format'</p> - </div> - <h3>Example of setting</h3> - <h4>1. When double-click the parent node, zTree will not expand the parent node.</h4> - <pre xmlns=""><code>var setting = { - view: { - dblClickExpand: false - } -}; -......</code></pre> - <h4>2. When double-click the parent node, zTree will expand the parent node which level>0.</h4> - <pre xmlns=""><code>function dblClickExpand(treeId, treeNode) { - return treeNode.level > 0; -}; -var setting = { - view: { - dblClickExpand: dblClickExpand - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Boolean / Function(treeId, treeNode)</span><span class="path">setting.view.</span>dblClickExpand</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>When double-click the parent node, 'dblClickExpand' is used to decide whether to expand the parent node.</p>
+ <p>Default: true</p>
+ </div>
+ </div>
+ <h3>Boolean Format</h3>
+ <div class="desc">
+ <p> true means: When double-click the parent node, zTree will expand the parent node.</p>
+ <p> false means: When double-click the parent node, zTree will not expand the parent node.</p>
+ </div>
+ <h3>Function Pamameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which be double-clicked.</p>
+ <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
+ <p>Return value is same as 'Boolean Format'</p>
+ </div>
+ <h3>Example of setting</h3>
+ <h4>1. When double-click the parent node, zTree will not expand the parent node.</h4>
+ <pre xmlns=""><code>var setting = {
+ view: {
+ dblClickExpand: false
+ }
+};
+......</code></pre>
+ <h4>2. When double-click the parent node, zTree will expand the parent node which level>0.</h4>
+ <pre xmlns=""><code>function dblClickExpand(treeId, treeNode) {
+ return treeNode.level > 0;
+};
+var setting = {
+ view: {
+ dblClickExpand: dblClickExpand
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.expandSpeed.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.expandSpeed.html index 1911e74e..54a57d87 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.expandSpeed.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.expandSpeed.html @@ -1,31 +1,31 @@ -<div class="apiDetail"> -<div> - <h2><span>String / Number</span><span class="path">setting.view.</span>expandSpeed</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 animation speed of expand or collapse node. As same as 'speed' parameter in jQuery</p> - <p class="highlight_red">In order to ensure zTree operating speed, if use the IE6, zTree will not use animation.</p> - <p>Default: "fast"</p> - </div> - </div> - <h3>String Format</h3> - <div class="desc"> - <p>e.g. "slow", "normal", or "fast"</p> - <p class="highlight_red">If set to "", zTree will not use animation.</p> - </div> - <h3>Number Format</h3> - <div class="desc"> - <p>How long the animation will run. [Unit: ms] (e.g. 1000)</p> - </div> - <h3>Examples of setting</h3> - <h4>1. Set the animation speed to slow</h4> - <pre xmlns=""><code>var setting = { - view: { - expandSpeed: "slow" - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>String / Number</span><span class="path">setting.view.</span>expandSpeed</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 animation speed of expand or collapse node. As same as 'speed' parameter in jQuery</p>
+ <p class="highlight_red">In order to ensure zTree operating speed, if use the IE6, zTree will not use animation.</p>
+ <p>Default: "fast"</p>
+ </div>
+ </div>
+ <h3>String Format</h3>
+ <div class="desc">
+ <p>e.g. "slow", "normal", or "fast"</p>
+ <p class="highlight_red">If set to "", zTree will not use animation.</p>
+ </div>
+ <h3>Number Format</h3>
+ <div class="desc">
+ <p>How long the animation will run. [Unit: ms] (e.g. 1000)</p>
+ </div>
+ <h3>Examples of setting</h3>
+ <h4>1. Set the animation speed to slow</h4>
+ <pre xmlns=""><code>var setting = {
+ view: {
+ expandSpeed: "slow"
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.fontCss.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.fontCss.html index 1ad5f516..1183bed8 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.fontCss.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.fontCss.html @@ -1,42 +1,42 @@ -<div class="apiDetail"> -<div> - <h2><span>JSON / Function(treeId, treeNode)</span><span class="path">setting.view.</span>fontCss</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>Personalized text style, only applies to <A> object in the node DOM</p> - <p>Default: {}</p> - </div> - </div> - <h3>JSON Format</h3> - <div class="desc"> - <p>As same as .css() method in jQuery. e.g. <span class="highlight_red">{color:"#ff0011", background:"blue"}</span></p> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p> - <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which use the personalized text style</p> - <h4 class="topLine"><b>Return </b><span>JSON</span></h4> - <p>Return value is same as 'JSON Format'. e.g. <span class="highlight_red">{color:"#ff0011", background:"blue"}</span></p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. Don't modify css file, and set the node name's color to red</h4> - <pre xmlns=""><code>var setting = { - view: { - fontCss : {color:"red"} - } -};</code></pre> - <h4>2. Don't modify css file, and set the root node name's color to red</h4> - <pre xmlns=""><code>function setFontCss(treeId, treeNode) { - return treeNode.level == 0 ? {color:"red"} : {}; -}; -var setting = { - view: { - fontCss: setFontCss - } -};</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>JSON / Function(treeId, treeNode)</span><span class="path">setting.view.</span>fontCss</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>Personalized text style, only applies to <A> object in the node DOM</p>
+ <p>Default: {}</p>
+ </div>
+ </div>
+ <h3>JSON Format</h3>
+ <div class="desc">
+ <p>As same as .css() method in jQuery. e.g. <span class="highlight_red">{color:"#ff0011", background:"blue"}</span></p>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which use the personalized text style</p>
+ <h4 class="topLine"><b>Return </b><span>JSON</span></h4>
+ <p>Return value is same as 'JSON Format'. e.g. <span class="highlight_red">{color:"#ff0011", background:"blue"}</span></p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. Don't modify css file, and set the node name's color to red</h4>
+ <pre xmlns=""><code>var setting = {
+ view: {
+ fontCss : {color:"red"}
+ }
+};</code></pre>
+ <h4>2. Don't modify css file, and set the root node name's color to red</h4>
+ <pre xmlns=""><code>function setFontCss(treeId, treeNode) {
+ return treeNode.level == 0 ? {color:"red"} : {};
+};
+var setting = {
+ view: {
+ fontCss: setFontCss
+ }
+};</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.nameIsHTML.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.nameIsHTML.html index 4fe19ada..fce48358 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.nameIsHTML.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.nameIsHTML.html @@ -1,28 +1,28 @@ -<div class="apiDetail"> -<div> - <h2><span>Boolean</span><span class="path">setting.view.</span>nameIsHTML</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>Set to use HTML in 'name' attribute.</p> - <p class="highlight_red">If allow HTML, please do check to avoid security issues, e.g. JavaScript Injection...</p> - <p>Default: false</p> - </div> - </div> - <h3>Boolean Format</h3> - <div class="desc"> - <p> true means: 'name' attribute can be HTML.</p> - <p> false means: 'name' attribute is only TEXT.</p> - </div> - <h3>Examples of setting</h3> - <h4>1. Set to allow HTML</h4> - <pre xmlns=""><code>var setting = { - view: { - nameIsHTML: true - } -}; -var node = {"name":"<font color='red'>test</font>"}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Boolean</span><span class="path">setting.view.</span>nameIsHTML</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>Set to use HTML in 'name' attribute.</p>
+ <p class="highlight_red">If allow HTML, please do check to avoid security issues, e.g. JavaScript Injection...</p>
+ <p>Default: false</p>
+ </div>
+ </div>
+ <h3>Boolean Format</h3>
+ <div class="desc">
+ <p> true means: 'name' attribute can be HTML.</p>
+ <p> false means: 'name' attribute is only TEXT.</p>
+ </div>
+ <h3>Examples of setting</h3>
+ <h4>1. Set to allow HTML</h4>
+ <pre xmlns=""><code>var setting = {
+ view: {
+ nameIsHTML: true
+ }
+};
+var node = {"name":"<font color='red'>test</font>"};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.removeHoverDom.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.removeHoverDom.html index 0c70aff2..2faa58e3 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.removeHoverDom.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.removeHoverDom.html @@ -1,45 +1,45 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(treeId, treeNode)</span><span class="path">setting.view.</span>removeHoverDom</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>Used to hide custom control when mouse move out the node. (e.g. the rename and remove button)</p> - <p class="highlight_red">If you use this function, so must set <span class="highlight_red">setting.view.addHoverDom</span>, please make sure that a better understanding of zTree before you use it.</p> - <p>Default: null</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p> - <h4><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which need to hide the custom control.</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. Display a button when mouse move over the node, and hide the button when mouse move out.</h4> - <pre xmlns=""><code>var setting = { - view: { - addHoverDom: addHoverDom, - removeHoverDom: removeHoverDom, - ...... - } -}; -function addHoverDom(treeId, treeNode) { - var aObj = $("#" + treeNode.tId + "_a"); - if ($("#diyBtn_"+treeNode.id).length>0) return; - var editStr = "<span id='diyBtn_space_" +treeNode.id+ "' > </span>" - + "<button type='button' class='diyBtn1' id='diyBtn_" + treeNode.id - + "' title='"+treeNode.name+"' onfocus='this.blur();'></button>"; - aObj.append(editStr); - var btn = $("#diyBtn_"+treeNode.id); - if (btn) btn.bind("click", function(){alert("diy Button for " + treeNode.name);}); -}; -function removeHoverDom(treeId, treeNode) { - $("#diyBtn_"+treeNode.id).unbind().remove(); - $("#diyBtn_space_" +treeNode.id).unbind().remove(); -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(treeId, treeNode)</span><span class="path">setting.view.</span>removeHoverDom</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>Used to hide custom control when mouse move out the node. (e.g. the rename and remove button)</p>
+ <p class="highlight_red">If you use this function, so must set <span class="highlight_red">setting.view.addHoverDom</span>, please make sure that a better understanding of zTree before you use it.</p>
+ <p>Default: null</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
+ <h4><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which need to hide the custom control.</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. Display a button when mouse move over the node, and hide the button when mouse move out.</h4>
+ <pre xmlns=""><code>var setting = {
+ view: {
+ addHoverDom: addHoverDom,
+ removeHoverDom: removeHoverDom,
+ ......
+ }
+};
+function addHoverDom(treeId, treeNode) {
+ var aObj = $("#" + treeNode.tId + "_a");
+ if ($("#diyBtn_"+treeNode.id).length>0) return;
+ var editStr = "<span id='diyBtn_space_" +treeNode.id+ "' > </span>"
+ + "<button type='button' class='diyBtn1' id='diyBtn_" + treeNode.id
+ + "' title='"+treeNode.name+"' onfocus='this.blur();'></button>";
+ aObj.append(editStr);
+ var btn = $("#diyBtn_"+treeNode.id);
+ if (btn) btn.bind("click", function(){alert("diy Button for " + treeNode.name);});
+};
+function removeHoverDom(treeId, treeNode) {
+ $("#diyBtn_"+treeNode.id).unbind().remove();
+ $("#diyBtn_space_" +treeNode.id).unbind().remove();
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.selectedMulti.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.selectedMulti.html index 074fb685..1b7f4e38 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.selectedMulti.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.selectedMulti.html @@ -1,28 +1,28 @@ -<div class="apiDetail"> -<div> - <h2><span>Boolean</span><span class="path">setting.view.</span>selectedMulti</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>Set whether to allow select multiple nodes.</p> - <p>Default: true</p> - </div> - </div> - <h3>Boolean Format</h3> - <div class="desc"> - <p> true mean: you can select multiple nodes.</p> - <p> false mean: you can only select one node.</p> - <p class="highlight_red">1. Press Ctrl-key or Cmd-key, you can select multiple nodes.</p> - <p class="highlight_red">2、This attribute don't affect the feature of cancel select node. ( please see setting.view.autoCancelSelected )</p> - </div> - <h3>Examples of setting</h3> - <h4>1. Only select one node.</h4> - <pre xmlns=""><code>var setting = { - view: { - selectedMulti: false - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Boolean</span><span class="path">setting.view.</span>selectedMulti</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>Set whether to allow select multiple nodes.</p>
+ <p>Default: true</p>
+ </div>
+ </div>
+ <h3>Boolean Format</h3>
+ <div class="desc">
+ <p> true mean: you can select multiple nodes.</p>
+ <p> false mean: you can only select one node.</p>
+ <p class="highlight_red">1. Press Ctrl-key or Cmd-key, you can select multiple nodes.</p>
+ <p class="highlight_red">2、This attribute don't affect the feature of cancel select node. ( please see setting.view.autoCancelSelected )</p>
+ </div>
+ <h3>Examples of setting</h3>
+ <h4>1. Only select one node.</h4>
+ <pre xmlns=""><code>var setting = {
+ view: {
+ selectedMulti: false
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.showIcon.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.showIcon.html index 9adf0034..fb8415f3 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.showIcon.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.showIcon.html @@ -1,45 +1,45 @@ -<div class="apiDetail"> -<div> - <h2><span>Boolean / Function(treeId, treeNode)</span><span class="path">setting.view.</span>showIcon</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>Set to show or hide node icon.</p> - <p>Default: true</p> - </div> - </div> - <h3>Boolean Format</h3> - <div class="desc"> - <p> true means: show node icon.</p> - <p> false means: hide node icon.</p> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p> - <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which need to show icon.</p> - <h4 class="topLine"><b>Return </b><span>Boolean</span></h4> - <p>Return value is same as 'Boolean Format'</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. Hide node icon</h4> - <pre xmlns=""><code>var setting = { - view: { - showIcon: false - } -}; -......</code></pre> - <h4>2. Hide node icon which level=2</h4> - <pre xmlns=""><code>function showIconForTree(treeId, treeNode) { - return treeNode.level != 2; -}; -var setting = { - view: { - showIcon: showIconForTree - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Boolean / Function(treeId, treeNode)</span><span class="path">setting.view.</span>showIcon</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>Set to show or hide node icon.</p>
+ <p>Default: true</p>
+ </div>
+ </div>
+ <h3>Boolean Format</h3>
+ <div class="desc">
+ <p> true means: show node icon.</p>
+ <p> false means: hide node icon.</p>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which need to show icon.</p>
+ <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
+ <p>Return value is same as 'Boolean Format'</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. Hide node icon</h4>
+ <pre xmlns=""><code>var setting = {
+ view: {
+ showIcon: false
+ }
+};
+......</code></pre>
+ <h4>2. Hide node icon which level=2</h4>
+ <pre xmlns=""><code>function showIconForTree(treeId, treeNode) {
+ return treeNode.level != 2;
+};
+var setting = {
+ view: {
+ showIcon: showIconForTree
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.showLine.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.showLine.html index a5540149..b8011cdf 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.showLine.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.showLine.html @@ -1,26 +1,26 @@ -<div class="apiDetail"> -<div> - <h2><span>Boolean</span><span class="path">setting.view.</span>showLine</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>Set to show or hide line.</p> - <p>Default: true</p> - </div> - </div> - <h3>Boolean Format</h3> - <div class="desc"> - <p> true means: show line.</p> - <p> false means: hide line.</p> - </div> - <h3>Examples of setting</h3> - <h4>1. Hide line</h4> - <pre xmlns=""><code>var setting = { - view: { - showLine: false - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Boolean</span><span class="path">setting.view.</span>showLine</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>Set to show or hide line.</p>
+ <p>Default: true</p>
+ </div>
+ </div>
+ <h3>Boolean Format</h3>
+ <div class="desc">
+ <p> true means: show line.</p>
+ <p> false means: hide line.</p>
+ </div>
+ <h3>Examples of setting</h3>
+ <h4>1. Hide line</h4>
+ <pre xmlns=""><code>var setting = {
+ view: {
+ showLine: false
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file 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 index 66bb26e6..961da66e 100644 --- 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 @@ -1,47 +1,47 @@ -<div class="apiDetail"> -<div> - <h2><span>Boolean / Function(treeId, treeNode)</span><span class="path">setting.view.</span>showTitle</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>Set to show or hide the 'title' attribute of node DOM.</p> - <p class="highlight_red">Please see the <span class="highlight_red">setting.data.key.title</span> attribute</p> - <p>Default: true</p> - </div> - </div> - <h3>Boolean Format</h3> - <div class="desc"> - <p> true means: show the 'title' attribute of node DOM.</p> - <p> false means: hide the 'title' attribute of node DOM.</p> - <p class="highlight_red">When setting.view.showTitle = true & setting.data.key.title = '', zTree will set the 'setting.data.key.name' attribute to the 'setting.data.key.title'.</p> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeId</b><span>String</span></h4> - <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p> - <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which need to show title.</p> - <h4 class="topLine"><b>Return </b><span>Boolean</span></h4> - <p>Return value is same as 'Boolean Format'</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. Hide the 'title' attribute of node DOM.</h4> - <pre xmlns=""><code>var setting = { - view: { - showTitle: false - } -}; -......</code></pre> - <h4>2. Hide the 'title' attribute of node DOM which level=2.</h4> - <pre xmlns=""><code>function showTitleForTree(treeId, treeNode) { - return treeNode.level != 2; -}; -var setting = { - view: { - showTitle: showTitleForTree - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Boolean / Function(treeId, treeNode)</span><span class="path">setting.view.</span>showTitle</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>Set to show or hide the 'title' attribute of node DOM.</p>
+ <p class="highlight_red">Please see the <span class="highlight_red">setting.data.key.title</span> attribute</p>
+ <p>Default: true</p>
+ </div>
+ </div>
+ <h3>Boolean Format</h3>
+ <div class="desc">
+ <p> true means: show the 'title' attribute of node DOM.</p>
+ <p> false means: hide the 'title' attribute of node DOM.</p>
+ <p class="highlight_red">When setting.view.showTitle = true & setting.data.key.title = '', zTree will set the 'setting.data.key.name' attribute to the 'setting.data.key.title'.</p>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeId</b><span>String</span></h4>
+ <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
+ <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which need to show title.</p>
+ <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
+ <p>Return value is same as 'Boolean Format'</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. Hide the 'title' attribute of node DOM.</h4>
+ <pre xmlns=""><code>var setting = {
+ view: {
+ showTitle: false
+ }
+};
+......</code></pre>
+ <h4>2. Hide the 'title' attribute of node DOM which level=2.</h4>
+ <pre xmlns=""><code>function showTitleForTree(treeId, treeNode) {
+ return treeNode.level != 2;
+};
+var setting = {
+ view: {
+ showTitle: showTitleForTree
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.txtSelectedEnable.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.txtSelectedEnable.html index a3809300..c7f706c1 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.txtSelectedEnable.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.view.txtSelectedEnable.html @@ -1,26 +1,26 @@ -<div class="apiDetail"> -<div> - <h2><span>Boolean</span><span class="path">setting.view.</span>txtSelectedEnable</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>Set to allow or don't allow to select the text which in zTree's DOM.</p> - <p>Default: false</p> - </div> - </div> - <h3>Boolean Format</h3> - <div class="desc"> - <p> true means: Allow to select the txt which in zTree's DOM.</p> - <p> false means: Don't allow to select the txt which in zTree's DOM.</p> - </div> - <h3>Examples of setting & function</h3> - <h4>1. Allow to select the txt which in zTree's DOM.</h4> - <pre xmlns=""><code>var setting = { - view: { - txtSelectedEnable: true - } -}; -......</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Boolean</span><span class="path">setting.view.</span>txtSelectedEnable</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>Set to allow or don't allow to select the text which in zTree's DOM.</p>
+ <p>Default: false</p>
+ </div>
+ </div>
+ <h3>Boolean Format</h3>
+ <div class="desc">
+ <p> true means: Allow to select the txt which in zTree's DOM.</p>
+ <p> false means: Don't allow to select the txt which in zTree's DOM.</p>
+ </div>
+ <h3>Examples of setting & function</h3>
+ <h4>1. Allow to select the txt which in zTree's DOM.</h4>
+ <pre xmlns=""><code>var setting = {
+ view: {
+ txtSelectedEnable: true
+ }
+};
+......</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.check_Child_State.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.check_Child_State.html index 48efb79a..587ef1fe 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.check_Child_State.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.check_Child_State.html @@ -1,43 +1,43 @@ -<div class="apiDetail"> -<div> - <h2><span>Number</span><span class="path">treeNode.</span>check_Child_State</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>Used to record the node's half-checked state about its all child nodes's checkbox or radio. It is valid when <span class="highlight_red">[setting.check.enable = true]</span></p> - <p class="highlight_red">zTree v3.x provides treeNode.getCheckStatus () method to get an accurate the half-checked status.</p> - <p class="highlight_red">Do not initialize or modify it, it is an internal argument.</p> - <p>Default: true</p> - </div> - </div> - <h3>Number Format</h3> - <div class="desc"> - <p>Rules:</p> - <table width="100%" border="0" cellspacing="1" cellpadding="0"> - <thead> - <tr><td colspan="4">setting.check.checkType = "checkbox"</td></tr> - <tr><td>treeNode.check_Child_State</td><td>Checked Status Description</td></tr> - </thead> - <tbody> - <tr><td>-1</td><td>Has no child nodes or all child nodes's 'nocheck' attribute is true.</td></tr> - <tr><td>0</td><td>All of the child nodes has not been checked.</td></tr> - <tr><td>1</td><td>Some of the child nodes has been checked.</td></tr> - <tr><td>2</td><td>All of the child nodes has been checked.</td></tr> - </tbody> - </table> - <br/> - <table width="100%" border="0" cellspacing="1" cellpadding="0"> - <thead> - <tr><td colspan="4">setting.check.checkType = "radio"</td></tr> - <tr><td>treeNode.check_Child_State</td><td>Checked Status Description</td></tr> - </thead> - <tbody> - <tr><td>-1</td><td>Has no child nodes or all child nodes's 'nocheck' attribute is true.</td></tr> - <tr><td>0</td><td>All of the child nodes has not been checked.</td></tr> - <tr><td>2</td><td>Some of the child nodes has been checked.</td></tr> - </tbody> - </table> - </div> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Number</span><span class="path">treeNode.</span>check_Child_State</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>Used to record the node's half-checked state about its all child nodes's checkbox or radio. It is valid when <span class="highlight_red">[setting.check.enable = true]</span></p>
+ <p class="highlight_red">zTree v3.x provides treeNode.getCheckStatus () method to get an accurate the half-checked status.</p>
+ <p class="highlight_red">Do not initialize or modify it, it is an internal argument.</p>
+ <p>Default: true</p>
+ </div>
+ </div>
+ <h3>Number Format</h3>
+ <div class="desc">
+ <p>Rules:</p>
+ <table width="100%" border="0" cellspacing="1" cellpadding="0">
+ <thead>
+ <tr><td colspan="4">setting.check.checkType = "checkbox"</td></tr>
+ <tr><td>treeNode.check_Child_State</td><td>Checked Status Description</td></tr>
+ </thead>
+ <tbody>
+ <tr><td>-1</td><td>Has no child nodes or all child nodes's 'nocheck' attribute is true.</td></tr>
+ <tr><td>0</td><td>All of the child nodes has not been checked.</td></tr>
+ <tr><td>1</td><td>Some of the child nodes has been checked.</td></tr>
+ <tr><td>2</td><td>All of the child nodes has been checked.</td></tr>
+ </tbody>
+ </table>
+ <br/>
+ <table width="100%" border="0" cellspacing="1" cellpadding="0">
+ <thead>
+ <tr><td colspan="4">setting.check.checkType = "radio"</td></tr>
+ <tr><td>treeNode.check_Child_State</td><td>Checked Status Description</td></tr>
+ </thead>
+ <tbody>
+ <tr><td>-1</td><td>Has no child nodes or all child nodes's 'nocheck' attribute is true.</td></tr>
+ <tr><td>0</td><td>All of the child nodes has not been checked.</td></tr>
+ <tr><td>2</td><td>Some of the child nodes has been checked.</td></tr>
+ </tbody>
+ </table>
+ </div>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.check_Focus.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.check_Focus.html index 77b73598..7cb2462c 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.check_Focus.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.check_Focus.html @@ -1,19 +1,19 @@ -<div class="apiDetail"> -<div> - <h2><span>Boolean</span><span class="path">treeNode.</span>check_Focus</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>Used to record the status which the checkbox or radio get focus. It is valid when <span class="highlight_red">[setting.check.enable = true]</span></p> - <p class="highlight_red">Do not initialize or modify it, it is an internal argument.</p> - <p>Default: false</p> - </div> - </div> - <h3>Boolean Format</h3> - <div class="desc"> - <p>true means: mouse move over the checkbox</p> - <p>false means: mouse move out the checkbox</p> - </div> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Boolean</span><span class="path">treeNode.</span>check_Focus</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>Used to record the status which the checkbox or radio get focus. It is valid when <span class="highlight_red">[setting.check.enable = true]</span></p>
+ <p class="highlight_red">Do not initialize or modify it, it is an internal argument.</p>
+ <p>Default: false</p>
+ </div>
+ </div>
+ <h3>Boolean Format</h3>
+ <div class="desc">
+ <p>true means: mouse move over the checkbox</p>
+ <p>false means: mouse move out the checkbox</p>
+ </div>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.checked.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.checked.html index 8a55f3d6..252e2907 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.checked.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.checked.html @@ -1,32 +1,32 @@ -<div class="apiDetail"> -<div> - <h2><span>Boolean</span><span class="path">treeNode.</span>checked</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>The checked status about node's checkbox or radio. It is valid when <span class="highlight_red">[setting.check.enable = true & treeNode.nocheck = false]</span></p> - <p class="highlight_red">1. If change the 'checked' to other attribute, please set the 'setting.data.key.checked' attribute.</p> - <p class="highlight_red">2. If you create node data, and set 'checked' attribute to true, zTree will check this node's checkbox or radio when zTree is initialized.</p> - <p class="highlight_red">3. Use the treeObj.checkNode or checkAllNodes or updateNode method, you can check or uncheck the node. Please see the API about these methods.</p> - <p class="highlight_red">4. zTree support identification string 'true' & 'false'.</p> - <p>Default: false</p> - </div> - </div> - <h3>Boolean Format</h3> - <div class="desc"> - <p>true means: check the checkbox or radio when zTree is initialized.</p> - <p>false means: uncheck the checkbox or radio when zTree is initialized.</p> - </div> - <h3>Examples of treeNode</h3> - <h4>1. check the checkbox when zTree is initialized</h4> - <pre xmlns=""><code>var nodes = [ -{ "id":1, "name":"test1", checked:true }, -{ "id":2, "name":"test2", checked:true } -]</code></pre> - <h4>2. Get the checked status of the first root node</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var checked = treeObj.getNodes()[0].checked; -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Boolean</span><span class="path">treeNode.</span>checked</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>The checked status about node's checkbox or radio. It is valid when <span class="highlight_red">[setting.check.enable = true & treeNode.nocheck = false]</span></p>
+ <p class="highlight_red">1. If change the 'checked' to other attribute, please set the 'setting.data.key.checked' attribute.</p>
+ <p class="highlight_red">2. If you create node data, and set 'checked' attribute to true, zTree will check this node's checkbox or radio when zTree is initialized.</p>
+ <p class="highlight_red">3. Use the treeObj.checkNode or checkAllNodes or updateNode method, you can check or uncheck the node. Please see the API about these methods.</p>
+ <p class="highlight_red">4. zTree support identification string 'true' & 'false'.</p>
+ <p>Default: false</p>
+ </div>
+ </div>
+ <h3>Boolean Format</h3>
+ <div class="desc">
+ <p>true means: check the checkbox or radio when zTree is initialized.</p>
+ <p>false means: uncheck the checkbox or radio when zTree is initialized.</p>
+ </div>
+ <h3>Examples of treeNode</h3>
+ <h4>1. check the checkbox when zTree is initialized</h4>
+ <pre xmlns=""><code>var nodes = [
+{ "id":1, "name":"test1", checked:true },
+{ "id":2, "name":"test2", checked:true }
+]</code></pre>
+ <h4>2. Get the checked status of the first root node</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var checked = treeObj.getNodes()[0].checked;
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.checkedOld.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.checkedOld.html index ee516260..c3670432 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.checkedOld.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.checkedOld.html @@ -1,25 +1,25 @@ -<div class="apiDetail"> -<div> - <h2><span>Boolean</span><span class="path">treeNode.</span>checkedOld</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>The checked status about node's checkbox or radio when zTree was initialized. It is valid when <span class="highlight_red">[setting.check.enable = true & treeNode.nocheck = false]</span></p> - <p class="highlight_red">1. Do not initialize it, it will be initialized when the node is initialized.</p> - <p class="highlight_red">2. If you need to achieve special features, you can use the zTreeObj.getChangeCheckedNodes method and modify the value of 'checkedOld' attribute.</p> - <p>Default: the value of 'checked' attribute when zTree is initialized</p> - </div> - </div> - <h3>Boolean Format</h3> - <div class="desc"> - <p>true means: the checkbox or radio is checked when zTree is initialized.</p> - <p>false means: the checkbox or radio is not checked when zTree is initialized.</p> - </div> - <h3>Examples of treeNode</h3> - <h4>1. Get the original checked status of the first root node</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var checkedOld = treeObj.getNodes()[0].checkedOld; -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Boolean</span><span class="path">treeNode.</span>checkedOld</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>The checked status about node's checkbox or radio when zTree was initialized. It is valid when <span class="highlight_red">[setting.check.enable = true & treeNode.nocheck = false]</span></p>
+ <p class="highlight_red">1. Do not initialize it, it will be initialized when the node is initialized.</p>
+ <p class="highlight_red">2. If you need to achieve special features, you can use the zTreeObj.getChangeCheckedNodes method and modify the value of 'checkedOld' attribute.</p>
+ <p>Default: the value of 'checked' attribute when zTree is initialized</p>
+ </div>
+ </div>
+ <h3>Boolean Format</h3>
+ <div class="desc">
+ <p>true means: the checkbox or radio is checked when zTree is initialized.</p>
+ <p>false means: the checkbox or radio is not checked when zTree is initialized.</p>
+ </div>
+ <h3>Examples of treeNode</h3>
+ <h4>1. Get the original checked status of the first root node</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var checkedOld = treeObj.getNodes()[0].checkedOld;
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.children.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.children.html index d765bb96..5d287724 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.children.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.children.html @@ -1,35 +1,35 @@ -<div class="apiDetail"> -<div> - <h2><span>Array(JSON)</span><span class="path">treeNode.</span>children</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 data collections of node's child nodes.</p> - <p class="highlight_red">1. If change the 'children' to other attribute, please set the 'setting.data.key.children' attribute.</p> - <p class="highlight_red">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.</p> - <p>Default: undefined</p> - </div> - </div> - <h3>Array(JSON) Format</h3> - <div class="desc"> - <p>Standard JSON Data object</p> - </div> - <h3>Examples of treeNode</h3> - <h4>1. Use the standard JSON data object.</h4> - <pre xmlns=""><code>var nodes = [ -{ "id":1, "name":"test1", - children: [ - { "id":3, "name":"test3"}, - { "id":4, "name":"test4"}, - { "id":5, "name":"test5"} - ] -}, -{ "id":2, "name":"test2" } -]</code></pre> - <h4>2. Get the first root node's child nodes</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var nodes = treeObj.getNodes()[0].children; -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Array(JSON)</span><span class="path">treeNode.</span>children</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 data collections of node's child nodes.</p>
+ <p class="highlight_red">1. If change the 'children' to other attribute, please set the 'setting.data.key.children' attribute.</p>
+ <p class="highlight_red">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.</p>
+ <p>Default: undefined</p>
+ </div>
+ </div>
+ <h3>Array(JSON) Format</h3>
+ <div class="desc">
+ <p>Standard JSON Data object</p>
+ </div>
+ <h3>Examples of treeNode</h3>
+ <h4>1. Use the standard JSON data object.</h4>
+ <pre xmlns=""><code>var nodes = [
+{ "id":1, "name":"test1",
+ children: [
+ { "id":3, "name":"test3"},
+ { "id":4, "name":"test4"},
+ { "id":5, "name":"test5"}
+ ]
+},
+{ "id":2, "name":"test2" }
+]</code></pre>
+ <h4>2. Get the first root node's child nodes</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getNodes()[0].children;
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.chkDisabled.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.chkDisabled.html index 7a5fcf38..0e454e48 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.chkDisabled.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.chkDisabled.html @@ -1,28 +1,28 @@ -<div class="apiDetail"> -<div> - <h2><span>Boolean</span><span class="path">treeNode.</span>chkDisabled</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>1. Set node's checkbox / radio to disabled. It is valid when <span class="highlight_red">[setting.check.enable = true]</span></p> - <p class="highlight_red">2. zTree support identification string 'true' & 'false'.</p> - <p class="highlight_red">3. Please don't change this attribute of the nodes which have been created. If you want to disable or undisable the nodes, please use 'setChkDisabled()' methods.</p> - <p class="highlight_red">4. When zTree initialize the nodes, if you need to the child nodes automatically inherit the 'chkDisabled' attribute, please see 'setting.check.chkDisabledInherit'.</p> - <p>Default: false</p> - </div> - </div> - <h3>Boolean Format</h3> - <div class="desc"> - <p class="highlight_red">true means: this node's checkbox / radio is disabled.</p> - <p class="highlight_red">false means: this node's checkbox / radio is able.</p> - </div> - <h3>Examples of treeNode</h3> - <h4>1. disable some node's checkbox / radio </h4> - <pre xmlns=""><code>var nodes = [ - { "id":1, "name":"test1", "checked":true, "chkDisabled":true}, - { "id":2, "name":"test2", "chkDisabled":true}, - { "id":3, "name":"test3"} -]</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Boolean</span><span class="path">treeNode.</span>chkDisabled</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>1. Set node's checkbox / radio to disabled. It is valid when <span class="highlight_red">[setting.check.enable = true]</span></p>
+ <p class="highlight_red">2. zTree support identification string 'true' & 'false'.</p>
+ <p class="highlight_red">3. Please don't change this attribute of the nodes which have been created. If you want to disable or undisable the nodes, please use 'setChkDisabled()' methods.</p>
+ <p class="highlight_red">4. When zTree initialize the nodes, if you need to the child nodes automatically inherit the 'chkDisabled' attribute, please see 'setting.check.chkDisabledInherit'.</p>
+ <p>Default: false</p>
+ </div>
+ </div>
+ <h3>Boolean Format</h3>
+ <div class="desc">
+ <p class="highlight_red">true means: this node's checkbox / radio is disabled.</p>
+ <p class="highlight_red">false means: this node's checkbox / radio is able.</p>
+ </div>
+ <h3>Examples of treeNode</h3>
+ <h4>1. disable some node's checkbox / radio </h4>
+ <pre xmlns=""><code>var nodes = [
+ { "id":1, "name":"test1", "checked":true, "chkDisabled":true},
+ { "id":2, "name":"test2", "chkDisabled":true},
+ { "id":3, "name":"test3"}
+]</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.click.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.click.html index 1f9db626..7e8aa1e2 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.click.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.click.html @@ -1,24 +1,24 @@ -<div class="apiDetail"> -<div> - <h2><span>String</span><span class="path">treeNode.</span>click</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>Simple click event operations. As same as : (onclick ="...") the code. If the operation is more complex, please use the onClick callback.</p> - <p class="highlight_red">Because IE is different to other browsers in operating the event of ‘onclick’ and ‘click’ coexistence, please do not use this parameter to control whether to allow the redirection operation (for example: treeNode.click = "return false;"). If there is similar requirements, please do not use the 'url' attribute to save the website address, but use the 'onClick' callback to control jumps.</p> - <p>Default: undefined</p> - </div> - </div> - <h3>String Format</h3> - <div class="desc"> - <p>Standard javascript syntax, for example: alert ("test"); etc.</p> - </div> - <h3>Examples of treeNode</h3> - <h4>1. When click this node, will alert msg.</h4> - <pre xmlns=""><code>var nodes = [ - { "id":1, "name":"Google CN", "url":"http://g.cn", "click":"alert('test');"}, - ...... -]</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>String</span><span class="path">treeNode.</span>click</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>Simple click event operations. As same as : (onclick ="...") the code. If the operation is more complex, please use the onClick callback.</p>
+ <p class="highlight_red">Because IE is different to other browsers in operating the event of ‘onclick’ and ‘click’ coexistence, please do not use this parameter to control whether to allow the redirection operation (for example: treeNode.click = "return false;"). If there is similar requirements, please do not use the 'url' attribute to save the website address, but use the 'onClick' callback to control jumps.</p>
+ <p>Default: undefined</p>
+ </div>
+ </div>
+ <h3>String Format</h3>
+ <div class="desc">
+ <p>Standard javascript syntax, for example: alert ("test"); etc.</p>
+ </div>
+ <h3>Examples of treeNode</h3>
+ <h4>1. When click this node, will alert msg.</h4>
+ <pre xmlns=""><code>var nodes = [
+ { "id":1, "name":"Google CN", "url":"http://g.cn", "click":"alert('test');"},
+ ......
+]</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.diy.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.diy.html index 68c39ba6..31d20805 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.diy.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.diy.html @@ -1,15 +1,15 @@ -<div class="apiDetail"> -<div> - <h2><span>?</span><span class="path">treeNode.</span>* DIY *</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>Used to save other custom data of node, do not use the same attribute name with ztree used, the user can freely set.</p> - </div> - </div> - <h3>Examples of treeNode</h3> - <h4>1. Use 'ename' attribute to save more info</h4> - <pre xmlns=""><code>var node = { "id":1, "name":"test1", "ename":"test eName"};</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>?</span><span class="path">treeNode.</span>* DIY *</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>Used to save other custom data of node, do not use the same attribute name with ztree used, the user can freely set.</p>
+ </div>
+ </div>
+ <h3>Examples of treeNode</h3>
+ <h4>1. Use 'ename' attribute to save more info</h4>
+ <pre xmlns=""><code>var node = { "id":1, "name":"test1", "ename":"test eName"};</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.editNameFlag.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.editNameFlag.html index f60ef2ab..4135fbdd 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.editNameFlag.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.editNameFlag.html @@ -1,19 +1,19 @@ -<div class="apiDetail"> -<div> - <h2><span>Boolean</span><span class="path">treeNode.</span>editNameFlag</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>Used to save the node editing name status. It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p> - <p class="highlight_red">Do not initialize or modify it, it is an internal argument.</p> - <p>Default: false</p> - </div> - </div> - <h3>Boolean Format</h3> - <div class="desc"> - <p>true means: node is being edited.</p> - <p>false means: node is not being edited.</p> - </div> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Boolean</span><span class="path">treeNode.</span>editNameFlag</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>Used to save the node editing name status. It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p>
+ <p class="highlight_red">Do not initialize or modify it, it is an internal argument.</p>
+ <p>Default: false</p>
+ </div>
+ </div>
+ <h3>Boolean Format</h3>
+ <div class="desc">
+ <p>true means: node is being edited.</p>
+ <p>false means: node is not being edited.</p>
+ </div>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.getCheckStatus.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.getCheckStatus.html index 3c9a2e6b..ed18859c 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.getCheckStatus.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.getCheckStatus.html @@ -1,63 +1,63 @@ -<div class="apiDetail"> -<div> - <h2><span>Function()</span><span class="path">treeNode.</span>getCheckStatus</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>Get the node's half-checked status of checkbox or radio. It is valid when <span class="highlight_red">[setting.check.enable = true]</span></p> - <p class="highlight_red">Do not initialize or modify it, it is created by the zTree.</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>Return</b><span>JSON</span></h4> - <pre xmlns=""><code>{ - checked: true, //As same as 'treeNode.checked' - half: true //Rule the table below -}</code></pre> - <table width="100%" border="0" cellspacing="1" cellpadding="0"> - <thead> - <tr><td colspan="4">setting.check.checkType = "checkbox"</td></tr> - <tr><td>treeNode.checked</td><td>treeNode.check_Child_State</td><td>treeNode.halfCheck</td><td> half </td></tr> - </thead> - <tbody> - <tr><td>-</td><td>-</td><td>true</td><td>true</td></tr> - <tr><td colspan="4"> </td></tr> - <tr><td>true</td><td>-1</td><td>false</td><td>false</td></tr> - <tr><td>true</td><td>0</td><td>false</td><td>true</td></tr> - <tr><td>true</td><td>1</td><td>false</td><td>true</td></tr> - <tr><td>true</td><td>2</td><td>false</td><td>false</td></tr> - <tr><td colspan="4"> </td></tr> - <tr><td>false</td><td>-1</td><td>false</td><td>false</td></tr> - <tr><td>false</td><td>0</td><td>false</td><td>false</td></tr> - <tr><td>false</td><td>1</td><td>false</td><td>true</td></tr> - <tr><td>false</td><td>2</td><td>false</td><td>true</td></tr> - </tbody> - </table> - <br/> - <table width="100%" border="0" cellspacing="1" cellpadding="0"> - <thead> - <tr><td colspan="4">setting.check.checkType = "radio"</td></tr> - <tr><td>treeNode.checked</td><td>treeNode.check_Child_State</td><td>treeNode.halfCheck</td><td> half </td></tr> - </thead> - <tbody> - <tr><td>-</td><td>-</td><td>true</td><td>true</td></tr> - <tr><td colspan="4"> </td></tr> - <tr><td>true</td><td>-1</td><td>false</td><td>false</td></tr> - <tr><td>true</td><td>0</td><td>false</td><td>false</td></tr> - <tr><td>true</td><td>2</td><td>false</td><td>true</td></tr> - <tr><td colspan="4"> </td></tr> - <tr><td>false</td><td>-1</td><td>false</td><td>false</td></tr> - <tr><td>false</td><td>0</td><td>false</td><td>false</td></tr> - <tr><td>false</td><td>2</td><td>false</td><td>true</td></tr> - </tbody> - </table> - </div> - <h3>Examples of treeNode</h3> - <h4>1. Get the first root node's half-checked status</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var halfCheck = treeObj.getNodes()[0].getCheckStatus(); -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function()</span><span class="path">treeNode.</span>getCheckStatus</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>Get the node's half-checked status of checkbox or radio. It is valid when <span class="highlight_red">[setting.check.enable = true]</span></p>
+ <p class="highlight_red">Do not initialize or modify it, it is created by the zTree.</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>Return</b><span>JSON</span></h4>
+ <pre xmlns=""><code>{
+ checked: true, //As same as 'treeNode.checked'
+ half: true //Rule the table below
+}</code></pre>
+ <table width="100%" border="0" cellspacing="1" cellpadding="0">
+ <thead>
+ <tr><td colspan="4">setting.check.checkType = "checkbox"</td></tr>
+ <tr><td>treeNode.checked</td><td>treeNode.check_Child_State</td><td>treeNode.halfCheck</td><td> half </td></tr>
+ </thead>
+ <tbody>
+ <tr><td>-</td><td>-</td><td>true</td><td>true</td></tr>
+ <tr><td colspan="4"> </td></tr>
+ <tr><td>true</td><td>-1</td><td>false</td><td>false</td></tr>
+ <tr><td>true</td><td>0</td><td>false</td><td>true</td></tr>
+ <tr><td>true</td><td>1</td><td>false</td><td>true</td></tr>
+ <tr><td>true</td><td>2</td><td>false</td><td>false</td></tr>
+ <tr><td colspan="4"> </td></tr>
+ <tr><td>false</td><td>-1</td><td>false</td><td>false</td></tr>
+ <tr><td>false</td><td>0</td><td>false</td><td>false</td></tr>
+ <tr><td>false</td><td>1</td><td>false</td><td>true</td></tr>
+ <tr><td>false</td><td>2</td><td>false</td><td>true</td></tr>
+ </tbody>
+ </table>
+ <br/>
+ <table width="100%" border="0" cellspacing="1" cellpadding="0">
+ <thead>
+ <tr><td colspan="4">setting.check.checkType = "radio"</td></tr>
+ <tr><td>treeNode.checked</td><td>treeNode.check_Child_State</td><td>treeNode.halfCheck</td><td> half </td></tr>
+ </thead>
+ <tbody>
+ <tr><td>-</td><td>-</td><td>true</td><td>true</td></tr>
+ <tr><td colspan="4"> </td></tr>
+ <tr><td>true</td><td>-1</td><td>false</td><td>false</td></tr>
+ <tr><td>true</td><td>0</td><td>false</td><td>false</td></tr>
+ <tr><td>true</td><td>2</td><td>false</td><td>true</td></tr>
+ <tr><td colspan="4"> </td></tr>
+ <tr><td>false</td><td>-1</td><td>false</td><td>false</td></tr>
+ <tr><td>false</td><td>0</td><td>false</td><td>false</td></tr>
+ <tr><td>false</td><td>2</td><td>false</td><td>true</td></tr>
+ </tbody>
+ </table>
+ </div>
+ <h3>Examples of treeNode</h3>
+ <h4>1. Get the first root node's half-checked status</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var halfCheck = treeObj.getNodes()[0].getCheckStatus();
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.getNextNode.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.getNextNode.html index 755aa6ee..9206fb94 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.getNextNode.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.getNextNode.html @@ -1,27 +1,27 @@ -<div class="apiDetail"> -<div> - <h2><span>Function()</span><span class="path">treeNode.</span>getNextNode</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>Get the treeNode's next sibling node.</p> - <p class="highlight_red">Do not initialize or modify it, it is created by the zTree.</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>Return</b><span>JSON</span></h4> - <p>JSON data object of the treeNode's next sibling node</p> - <p class="highlight_red">If have not the next node, return null.</p> - </div> - <h3>Examples of treeNode</h3> - <h4>1. Get the first selected node's next sibling node.</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var sNodes = treeObj.getSelectedNodes(); -if (sNodes.length > 0) { - var node = sNodes[0].getNextNode(); -} -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function()</span><span class="path">treeNode.</span>getNextNode</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>Get the treeNode's next sibling node.</p>
+ <p class="highlight_red">Do not initialize or modify it, it is created by the zTree.</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>Return</b><span>JSON</span></h4>
+ <p>JSON data object of the treeNode's next sibling node</p>
+ <p class="highlight_red">If have not the next node, return null.</p>
+ </div>
+ <h3>Examples of treeNode</h3>
+ <h4>1. Get the first selected node's next sibling node.</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var sNodes = treeObj.getSelectedNodes();
+if (sNodes.length > 0) {
+ var node = sNodes[0].getNextNode();
+}
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.getParentNode.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.getParentNode.html index 16bab306..18543da5 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.getParentNode.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.getParentNode.html @@ -1,27 +1,27 @@ -<div class="apiDetail"> -<div> - <h2><span>Function()</span><span class="path">treeNode.</span>getParentNode</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>Get the treeNode's parent node.</p> - <p class="highlight_red">Do not initialize or modify it, it is created by the zTree.</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>Return</b><span>JSON</span></h4> - <p>JSON data object of treeNode's parent node.</p> - <p class="highlight_red">If treeNode is root, return null.</p> - </div> - <h3>Examples of treeNode</h3> - <h4>1. Get the first selected node's parent node.</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var sNodes = treeObj.getSelectedNodes(); -if (sNodes.length > 0) { - var node = sNodes[0].getParentNode(); -} -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function()</span><span class="path">treeNode.</span>getParentNode</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>Get the treeNode's parent node.</p>
+ <p class="highlight_red">Do not initialize or modify it, it is created by the zTree.</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>Return</b><span>JSON</span></h4>
+ <p>JSON data object of treeNode's parent node.</p>
+ <p class="highlight_red">If treeNode is root, return null.</p>
+ </div>
+ <h3>Examples of treeNode</h3>
+ <h4>1. Get the first selected node's parent node.</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var sNodes = treeObj.getSelectedNodes();
+if (sNodes.length > 0) {
+ var node = sNodes[0].getParentNode();
+}
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.getPreNode.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.getPreNode.html index f6745b14..9c3e85db 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.getPreNode.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.getPreNode.html @@ -1,27 +1,27 @@ -<div class="apiDetail"> -<div> - <h2><span>Function()</span><span class="path">treeNode.</span>getPreNode</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>Get the treeNode's previous sibling node.</p> - <p class="highlight_red">Do not initialize or modify it, it is created by the zTree.</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>Return</b><span>JSON</span></h4> - <p>JSON data object of the treeNode's previous sibling node</p> - <p class="highlight_red">If have not the previous node, return null.</p> - </div> - <h3>Examples of treeNode</h3> - <h4>1. Get the first selected node's previous sibling node.</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var sNodes = treeObj.getSelectedNodes(); -if (sNodes.length > 0) { - var node = sNodes[0].getPreNode(); -} -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function()</span><span class="path">treeNode.</span>getPreNode</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>Get the treeNode's previous sibling node.</p>
+ <p class="highlight_red">Do not initialize or modify it, it is created by the zTree.</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>Return</b><span>JSON</span></h4>
+ <p>JSON data object of the treeNode's previous sibling node</p>
+ <p class="highlight_red">If have not the previous node, return null.</p>
+ </div>
+ <h3>Examples of treeNode</h3>
+ <h4>1. Get the first selected node's previous sibling node.</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var sNodes = treeObj.getSelectedNodes();
+if (sNodes.length > 0) {
+ var node = sNodes[0].getPreNode();
+}
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.halfCheck.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.halfCheck.html index 8375326b..05919a85 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.halfCheck.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.halfCheck.html @@ -1,29 +1,29 @@ -<div class="apiDetail"> -<div> - <h2><span>Boolean</span><span class="path">treeNode.</span>halfCheck</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>Force node checkBox / radio to the half-checked status. It is valid when <span class="highlight_red">[setting.check.enable = true & treeNode.nocheck = false]</span></p> - <p class="highlight_red">1. If you force to the half-checked status, zTree will not automatically calculated the half-checked status about this node.</p> - <p class="highlight_red">2. Until you set treeNode.halfCheck to false or null, zTree will automatically calculated the half-checked status about this node.</p> - <p class="highlight_red">3. zTree support identification string 'true' & 'false'.</p> - <p>Defaul: false</p> - </div> - </div> - <h3>Boolean Format</h3> - <div class="desc"> - <p>true means: the checkbox or radio is half-checked when zTree is initialized.</p> - <p>false means: the half-checked status will be automatically calculated</p> - </div> - <h3>Examples of treeNode</h3> - <h4>1. set the half-checked status when zTree is initialized</h4> - <pre xmlns=""><code>var nodes = [ -{ "id":1, "name":"test1", isParent:true, checked:true, halfCheck:true }, -{ "id":2, "name":"test2", isParent:true, checked:false, halfCheck:true }, -{ "id":3, "name":"test3", isParent:true, checked:true }, -{ "id":4, "name":"test4", isParent:true, checked:false } -]</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Boolean</span><span class="path">treeNode.</span>halfCheck</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>Force node checkBox / radio to the half-checked status. It is valid when <span class="highlight_red">[setting.check.enable = true & treeNode.nocheck = false]</span></p>
+ <p class="highlight_red">1. If you force to the half-checked status, zTree will not automatically calculated the half-checked status about this node.</p>
+ <p class="highlight_red">2. Until you set treeNode.halfCheck to false or null, zTree will automatically calculated the half-checked status about this node.</p>
+ <p class="highlight_red">3. zTree support identification string 'true' & 'false'.</p>
+ <p>Defaul: false</p>
+ </div>
+ </div>
+ <h3>Boolean Format</h3>
+ <div class="desc">
+ <p>true means: the checkbox or radio is half-checked when zTree is initialized.</p>
+ <p>false means: the half-checked status will be automatically calculated</p>
+ </div>
+ <h3>Examples of treeNode</h3>
+ <h4>1. set the half-checked status when zTree is initialized</h4>
+ <pre xmlns=""><code>var nodes = [
+{ "id":1, "name":"test1", isParent:true, checked:true, halfCheck:true },
+{ "id":2, "name":"test2", isParent:true, checked:false, halfCheck:true },
+{ "id":3, "name":"test3", isParent:true, checked:true },
+{ "id":4, "name":"test4", isParent:true, checked:false }
+]</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.icon.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.icon.html index 4e1c99fa..67b6d993 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.icon.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.icon.html @@ -1,33 +1,33 @@ -<div class="apiDetail"> -<div> - <h2><span>String</span><span class="path">treeNode.</span>icon</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>URL path of node's custom icon.</p> - <p class="highlight_red">1. If you only set the 'icon' attribute to parent node, the parent node will only show one icon when it is expanded or collapsed.</p> - <p class="highlight_red">2. If you need to show two icons when it is expanded or collapsed, please set the 'treeNode.iconOpen' and 'treeNode.iconClose' attribute.</p> - <p class="highlight_red">3. If you need to use css to set the custom icon, please set the 'treeNode.iconSkin' attribute.</p> - <p>Default: undefined</p> - </div> - </div> - <h3>String Format</h3> - <div class="desc"> - <p>Icon image url can be a relative path or absolute path.</p> - <p class="highlight_red">If use a relative path, please note the relationship between icon image and the page, ensure the correct image path.</p> - </div> - <h3>Examples of treeNode</h3> - <h4>1. Set the custom icon</h4> - <pre xmlns=""><code>var nodes = [ - //Only show one icon when it is expanded or collapsed. - { name:"Parent Node 1", icon:"/img/parent.gif"}, - - //Show two icons when it is expanded or collapsed. - { name:"Parent Node 2", iconOpen:"/img/open.gif", iconClose:"/img/close.gif"}, - - //the custom icon for leaf node - { name:"Leaf Node", icon:"/img/leaf.gif"} -]</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>String</span><span class="path">treeNode.</span>icon</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>URL path of node's custom icon.</p>
+ <p class="highlight_red">1. If you only set the 'icon' attribute to parent node, the parent node will only show one icon when it is expanded or collapsed.</p>
+ <p class="highlight_red">2. If you need to show two icons when it is expanded or collapsed, please set the 'treeNode.iconOpen' and 'treeNode.iconClose' attribute.</p>
+ <p class="highlight_red">3. If you need to use css to set the custom icon, please set the 'treeNode.iconSkin' attribute.</p>
+ <p>Default: undefined</p>
+ </div>
+ </div>
+ <h3>String Format</h3>
+ <div class="desc">
+ <p>Icon image url can be a relative path or absolute path.</p>
+ <p class="highlight_red">If use a relative path, please note the relationship between icon image and the page, ensure the correct image path.</p>
+ </div>
+ <h3>Examples of treeNode</h3>
+ <h4>1. Set the custom icon</h4>
+ <pre xmlns=""><code>var nodes = [
+ //Only show one icon when it is expanded or collapsed.
+ { name:"Parent Node 1", icon:"/img/parent.gif"},
+
+ //Show two icons when it is expanded or collapsed.
+ { name:"Parent Node 2", iconOpen:"/img/open.gif", iconClose:"/img/close.gif"},
+
+ //the custom icon for leaf node
+ { name:"Leaf Node", icon:"/img/leaf.gif"}
+]</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.iconClose.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.iconClose.html index 2259e8f3..c7194a14 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.iconClose.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.iconClose.html @@ -1,33 +1,33 @@ -<div class="apiDetail"> -<div> - <h2><span>String</span><span class="path">treeNode.</span>iconClose</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>URL path of parent node's custom icon when it is collapsed.</p> - <p class="highlight_red">1. Only parent node support this attribute.</p> - <p class="highlight_red">2. This attribute must be used simultaneously with 'iconOpen' attribute.</p> - <p class="highlight_red">3. If you need to use css to set the custom icon, please set the 'treeNode.iconSkin' attribute.</p> - <p>Default: undefined</p> - </div> - </div> - <h3>String Format</h3> - <div class="desc"> - <p>Icon image url can be a relative path or absolute path.</p> - <p class="highlight_red">If use a relative path, please note the relationship between icon image and the page, ensure the correct image path.</p> - </div> - <h3>Examples of treeNode</h3> - <h4>1. Set the custom icon</h4> - <pre xmlns=""><code>var nodes = [ - //Only show one icon when it is expanded or collapsed. - { name:"Parent Node 1", icon:"/img/parent.gif"}, - - //Show two icons when it is expanded or collapsed. - { name:"Parent Node 2", iconOpen:"/img/open.gif", iconClose:"/img/close.gif"}, - - //the custom icon for leaf node - { name:"Leaf Node", icon:"/img/leaf.gif"} -]</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>String</span><span class="path">treeNode.</span>iconClose</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>URL path of parent node's custom icon when it is collapsed.</p>
+ <p class="highlight_red">1. Only parent node support this attribute.</p>
+ <p class="highlight_red">2. This attribute must be used simultaneously with 'iconOpen' attribute.</p>
+ <p class="highlight_red">3. If you need to use css to set the custom icon, please set the 'treeNode.iconSkin' attribute.</p>
+ <p>Default: undefined</p>
+ </div>
+ </div>
+ <h3>String Format</h3>
+ <div class="desc">
+ <p>Icon image url can be a relative path or absolute path.</p>
+ <p class="highlight_red">If use a relative path, please note the relationship between icon image and the page, ensure the correct image path.</p>
+ </div>
+ <h3>Examples of treeNode</h3>
+ <h4>1. Set the custom icon</h4>
+ <pre xmlns=""><code>var nodes = [
+ //Only show one icon when it is expanded or collapsed.
+ { name:"Parent Node 1", icon:"/img/parent.gif"},
+
+ //Show two icons when it is expanded or collapsed.
+ { name:"Parent Node 2", iconOpen:"/img/open.gif", iconClose:"/img/close.gif"},
+
+ //the custom icon for leaf node
+ { name:"Leaf Node", icon:"/img/leaf.gif"}
+]</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.iconOpen.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.iconOpen.html index 3203615d..dd8d14c9 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.iconOpen.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.iconOpen.html @@ -1,33 +1,33 @@ -<div class="apiDetail"> -<div> - <h2><span>String</span><span class="path">treeNode.</span>iconOpen</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>URL path of parent node's custom icon when it is expanded.</p> - <p class="highlight_red">1. Only parent node support this attribute.</p> - <p class="highlight_red">2. This attribute must be used simultaneously with 'iconClose' attribute.</p> - <p class="highlight_red">3. If you need to use css to set the custom icon, please set the 'treeNode.iconSkin' attribute.</p> - <p>Default: undefined</p> - </div> - </div> - <h3>String Format</h3> - <div class="desc"> - <p>Icon image url can be a relative path or absolute path.</p> - <p class="highlight_red">If use a relative path, please note the relationship between icon image and the page, ensure the correct image path.</p> - </div> - <h3>Examples of treeNode</h3> - <h4>1. Set the custom icon</h4> - <pre xmlns=""><code>var nodes = [ - //Only show one icon when it is expanded or collapsed. - { name:"Parent Node 1", icon:"/img/parent.gif"}, - - //Show two icons when it is expanded or collapsed. - { name:"Parent Node 2", iconOpen:"/img/open.gif", iconClose:"/img/close.gif"}, - - //the custom icon for leaf node - { name:"Leaf Node", icon:"/img/leaf.gif"} -]</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>String</span><span class="path">treeNode.</span>iconOpen</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>URL path of parent node's custom icon when it is expanded.</p>
+ <p class="highlight_red">1. Only parent node support this attribute.</p>
+ <p class="highlight_red">2. This attribute must be used simultaneously with 'iconClose' attribute.</p>
+ <p class="highlight_red">3. If you need to use css to set the custom icon, please set the 'treeNode.iconSkin' attribute.</p>
+ <p>Default: undefined</p>
+ </div>
+ </div>
+ <h3>String Format</h3>
+ <div class="desc">
+ <p>Icon image url can be a relative path or absolute path.</p>
+ <p class="highlight_red">If use a relative path, please note the relationship between icon image and the page, ensure the correct image path.</p>
+ </div>
+ <h3>Examples of treeNode</h3>
+ <h4>1. Set the custom icon</h4>
+ <pre xmlns=""><code>var nodes = [
+ //Only show one icon when it is expanded or collapsed.
+ { name:"Parent Node 1", icon:"/img/parent.gif"},
+
+ //Show two icons when it is expanded or collapsed.
+ { name:"Parent Node 2", iconOpen:"/img/open.gif", iconClose:"/img/close.gif"},
+
+ //the custom icon for leaf node
+ { name:"Leaf Node", icon:"/img/leaf.gif"}
+]</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.iconSkin.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.iconSkin.html index fca7fbf2..7d7d4522 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.iconSkin.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.iconSkin.html @@ -1,43 +1,43 @@ -<div class="apiDetail"> -<div> - <h2><span>String</span><span class="path">treeNode.</span>iconSkin</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 className of node's custom icon.</p> - <p class="highlight_red">1. You need to modify the css, add the definition of className.</p> - <p class="highlight_red">2. The css is simple, convenient, and support the parent node to switch icons when it is expanded or collapsed.</p> - <p class="highlight_red">3. Recommend the use of CSS Sprites, can reduce repeating load the image, to avoid image flicker.</p> - <p class="highlight_red">4. The 'iconSkin' support IE6 in zTree v3.x.</p> - <p class="highlight_red">5. If you need to use image's URL to set the custom icon, please set the 'treeNode.icon' or 'treeNode.iconOpen' or 'treeNode.iconClose' attribute.</p> - <p>Default: undefined</p> - </div> - </div> - <h3>String Format</h3> - <div class="desc"> - <p>The string about custom icon's className.</p> - </div> - <h3>Examples of css & treeNode</h3> - <h4>1. Set the custom icon</h4> - <pre xmlns=""><code>css example: -.ztree li span.button.diy01_ico_open, .ztree li span.button.diy01_ico_close{...} - -.ztree li span.button.diy02_ico_open{...} -.ztree li span.button.diy02_ico_close{...} - -.ztree li span.button.diy03_ico_docu{...} - -node's data example: -var nodes = [ - //Only show one icon when it is expanded or collapsed. - { name:"Parent Node 1", iconSkin:"diy01"}, - - //Show two icons when it is expanded or collapsed. - { name:"Parent Node 2", iconSkin:"diy02"}, - - //the custom icon for leaf node - { name:"Leaf Node", iconSkin:"diy03"} -]</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>String</span><span class="path">treeNode.</span>iconSkin</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 className of node's custom icon.</p>
+ <p class="highlight_red">1. You need to modify the css, add the definition of className.</p>
+ <p class="highlight_red">2. The css is simple, convenient, and support the parent node to switch icons when it is expanded or collapsed.</p>
+ <p class="highlight_red">3. Recommend the use of CSS Sprites, can reduce repeating load the image, to avoid image flicker.</p>
+ <p class="highlight_red">4. The 'iconSkin' support IE6 in zTree v3.x.</p>
+ <p class="highlight_red">5. If you need to use image's URL to set the custom icon, please set the 'treeNode.icon' or 'treeNode.iconOpen' or 'treeNode.iconClose' attribute.</p>
+ <p>Default: undefined</p>
+ </div>
+ </div>
+ <h3>String Format</h3>
+ <div class="desc">
+ <p>The string about custom icon's className.</p>
+ </div>
+ <h3>Examples of css & treeNode</h3>
+ <h4>1. Set the custom icon</h4>
+ <pre xmlns=""><code>css example:
+.ztree li span.button.diy01_ico_open, .ztree li span.button.diy01_ico_close{...}
+
+.ztree li span.button.diy02_ico_open{...}
+.ztree li span.button.diy02_ico_close{...}
+
+.ztree li span.button.diy03_ico_docu{...}
+
+node's data example:
+var nodes = [
+ //Only show one icon when it is expanded or collapsed.
+ { name:"Parent Node 1", iconSkin:"diy01"},
+
+ //Show two icons when it is expanded or collapsed.
+ { name:"Parent Node 2", iconSkin:"diy02"},
+
+ //the custom icon for leaf node
+ { name:"Leaf Node", iconSkin:"diy03"}
+]</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.isAjaxing.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.isAjaxing.html index ddadf41b..1aff4609 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.isAjaxing.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.isAjaxing.html @@ -1,26 +1,26 @@ -<div class="apiDetail"> -<div> - <h2><span>Boolean</span><span class="path">treeNode.</span>isAjaxing</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>Judge whether the node's child nodes being loaded asynchronously.</p> - <p class="highlight_red">Do not initialize or modify it, it is created by the zTree.</p> - </div> - </div> - <h3>Boolean Format</h3> - <div class="desc"> - <p> true means: the node's child nodes is being loaded asynchronously</p> - <p> false means: the node's child nodes is not being loaded asynchronously</p> - </div> - <h3>Examples of treeNode</h3> - <h4>1. Judge whether the first selected node's child nodes being loaded asynchronously</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var sNodes = treeObj.getSelectedNodes(); -if (sNodes.length > 0) { - var isAjaxing = sNodes[0].isAjaxing; -} -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Boolean</span><span class="path">treeNode.</span>isAjaxing</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>Judge whether the node's child nodes being loaded asynchronously.</p>
+ <p class="highlight_red">Do not initialize or modify it, it is created by the zTree.</p>
+ </div>
+ </div>
+ <h3>Boolean Format</h3>
+ <div class="desc">
+ <p> true means: the node's child nodes is being loaded asynchronously</p>
+ <p> false means: the node's child nodes is not being loaded asynchronously</p>
+ </div>
+ <h3>Examples of treeNode</h3>
+ <h4>1. Judge whether the first selected node's child nodes being loaded asynchronously</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var sNodes = treeObj.getSelectedNodes();
+if (sNodes.length > 0) {
+ var isAjaxing = sNodes[0].isAjaxing;
+}
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.isFirstNode.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.isFirstNode.html index a8ee61ce..4de0df8d 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.isFirstNode.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.isFirstNode.html @@ -1,28 +1,28 @@ -<div class="apiDetail"> -<div> - <h2><span>Boolean</span><span class="path">treeNode.</span>isFirstNode</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>Judge whether the node is the sibling nodes's first node.</p> - <p class="highlight_red">If you use the 'exhide' pack, so this attribute will only support the node which be shown. </p> - <p class="highlight_red">Do not initialize or modify it, it is created by the zTree.</p> - </div> - </div> - <h3>Boolean Format</h3> - <div class="desc"> - <p> true means: the node is first node.</p> - <p> false means: the node is not first node.</p> - <p class="highlight_red">If the node has been hidden, isFirstNode = false</p> - </div> - <h3>Examples of treeNode</h3> - <h4>1. Judge whether the first selected node is the sibling nodes's first node.</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var sNodes = treeObj.getSelectedNodes(); -if (sNodes.length > 0) { - var isFirstNode = sNodes[0].isFirstNode; -} -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Boolean</span><span class="path">treeNode.</span>isFirstNode</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>Judge whether the node is the sibling nodes's first node.</p>
+ <p class="highlight_red">If you use the 'exhide' pack, so this attribute will only support the node which be shown. </p>
+ <p class="highlight_red">Do not initialize or modify it, it is created by the zTree.</p>
+ </div>
+ </div>
+ <h3>Boolean Format</h3>
+ <div class="desc">
+ <p> true means: the node is first node.</p>
+ <p> false means: the node is not first node.</p>
+ <p class="highlight_red">If the node has been hidden, isFirstNode = false</p>
+ </div>
+ <h3>Examples of treeNode</h3>
+ <h4>1. Judge whether the first selected node is the sibling nodes's first node.</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var sNodes = treeObj.getSelectedNodes();
+if (sNodes.length > 0) {
+ var isFirstNode = sNodes[0].isFirstNode;
+}
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.isHidden.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.isHidden.html index 3a07b94c..f12e919e 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.isHidden.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.isHidden.html @@ -1,28 +1,28 @@ -<div class="apiDetail"> -<div> - <h2><span>Boolean</span><span class="path">treeNode.</span>isHidden</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exhide</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>Judge whether the node has been hidden.</p> - <p class="highlight_red">1. When initialize zTree, the nodes which be set 'isHidden = true' will be hidden.</p> - <p class="highlight_red"></p> - <p class="highlight_red">2. Please don't change this attribute of the nodes which have been created. If you want to hide or show nodes, please use 'hideNode() / hideNodes() / showNode() / showNodes()' methods.</p> - </div> - </div> - <h3>Boolean Format</h3> - <div class="desc"> - <p> true means: this node is hidden.</p> - <p> false means: this node is shown.</p> - </div> - <h3>Examples of treeNode</h3> - <h4>1. Judge whether the first root node has been hidden.</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var sNodes = treeObj.getNodes(); -if (sNodes.length > 0) { - var isHidden = sNodes[0].isHidden; -} -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Boolean</span><span class="path">treeNode.</span>isHidden</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exhide</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>Judge whether the node has been hidden.</p>
+ <p class="highlight_red">1. When initialize zTree, the nodes which be set 'isHidden = true' will be hidden.</p>
+ <p class="highlight_red"></p>
+ <p class="highlight_red">2. Please don't change this attribute of the nodes which have been created. If you want to hide or show nodes, please use 'hideNode() / hideNodes() / showNode() / showNodes()' methods.</p>
+ </div>
+ </div>
+ <h3>Boolean Format</h3>
+ <div class="desc">
+ <p> true means: this node is hidden.</p>
+ <p> false means: this node is shown.</p>
+ </div>
+ <h3>Examples of treeNode</h3>
+ <h4>1. Judge whether the first root node has been hidden.</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var sNodes = treeObj.getNodes();
+if (sNodes.length > 0) {
+ var isHidden = sNodes[0].isHidden;
+}
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.isHover.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.isHover.html index e18ed0cf..13617cd8 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.isHover.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.isHover.html @@ -1,19 +1,19 @@ -<div class="apiDetail"> -<div> - <h2><span>Boolean</span><span class="path">treeNode.</span>isHover</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>Used to record the hover status of node's DOM. For 'setting.view.addHoverDom / removeHoverDom'.</p> - <p class="highlight_red">Do not initialize or modify it, it is an internal argument.</p> - <p>Default: false</p> - </div> - </div> - <h3>Boolean Format</h3> - <div class="desc"> - <p>true means: the node's DOM is in hover.</p> - <p>false means: the node's DOM is not in hover.</p> - </div> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Boolean</span><span class="path">treeNode.</span>isHover</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>Used to record the hover status of node's DOM. For 'setting.view.addHoverDom / removeHoverDom'.</p>
+ <p class="highlight_red">Do not initialize or modify it, it is an internal argument.</p>
+ <p>Default: false</p>
+ </div>
+ </div>
+ <h3>Boolean Format</h3>
+ <div class="desc">
+ <p>true means: the node's DOM is in hover.</p>
+ <p>false means: the node's DOM is not in hover.</p>
+ </div>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.isLastNode.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.isLastNode.html index cd2ca26b..b3f5c51a 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.isLastNode.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.isLastNode.html @@ -1,28 +1,28 @@ -<div class="apiDetail"> -<div> - <h2><span>Boolean</span><span class="path">treeNode.</span>isLastNode</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>Judge whether the node is the sibling nodes's last node.</p> - <p class="highlight_red">If you use the 'exhide' pack, so this attribute will only support the node which be shown. </p> - <p class="highlight_red">Do not initialize or modify it, it is created by the zTree.</p> - </div> - </div> - <h3>Boolean Format</h3> - <div class="desc"> - <p> true means: the node is last node.</p> - <p> false means: the node is not last node.</p> - <p class="highlight_red">If the node has been hidden, isLastNode = false</p> - </div> - <h3>Examples of treeNode</h3> - <h4>1. Judge whether the first selected node is the sibling nodes's last node.</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var sNodes = treeObj.getSelectedNodes(); -if (sNodes.length > 0) { - var isLastNode = sNodes[0].isLastNode; -} -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Boolean</span><span class="path">treeNode.</span>isLastNode</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>Judge whether the node is the sibling nodes's last node.</p>
+ <p class="highlight_red">If you use the 'exhide' pack, so this attribute will only support the node which be shown. </p>
+ <p class="highlight_red">Do not initialize or modify it, it is created by the zTree.</p>
+ </div>
+ </div>
+ <h3>Boolean Format</h3>
+ <div class="desc">
+ <p> true means: the node is last node.</p>
+ <p> false means: the node is not last node.</p>
+ <p class="highlight_red">If the node has been hidden, isLastNode = false</p>
+ </div>
+ <h3>Examples of treeNode</h3>
+ <h4>1. Judge whether the first selected node is the sibling nodes's last node.</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var sNodes = treeObj.getSelectedNodes();
+if (sNodes.length > 0) {
+ var isLastNode = sNodes[0].isLastNode;
+}
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.isParent.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.isParent.html index dad4b819..4b35e9d7 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.isParent.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.isParent.html @@ -1,28 +1,28 @@ -<div class="apiDetail"> -<div> - <h2><span>Boolean</span><span class="path">treeNode.</span>isParent</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>Judge whether the node is the parent node.</p> - <p class="highlight_red">1. When zTree initialize the node data, the node which has children is set to true, otherwise false.</p> - <p class="highlight_red">2. When zTree initialize the node data, if set treeNode.isParent to true, the node will be set to be parent node.</p> - <p class="highlight_red">3. In order to solve the problem of someone make json data, supporting "false", "true" format of the data string.</p> - </div> - </div> - <h3>Boolean Format</h3> - <div class="desc"> - <p> true means: the node is parent node.</p> - <p> false means: the node is not parent node.</p> - </div> - <h3>Examples of treeNode</h3> - <h4>1. Judge whether the first selected node is the parent node.</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var sNodes = treeObj.getSelectedNodes(); -if (sNodes.length > 0) { - var isParent = sNodes[0].isParent; -} -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Boolean</span><span class="path">treeNode.</span>isParent</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>Judge whether the node is the parent node.</p>
+ <p class="highlight_red">1. When zTree initialize the node data, the node which has children is set to true, otherwise false.</p>
+ <p class="highlight_red">2. When zTree initialize the node data, if set treeNode.isParent to true, the node will be set to be parent node.</p>
+ <p class="highlight_red">3. In order to solve the problem of someone make json data, supporting "false", "true" format of the data string.</p>
+ </div>
+ </div>
+ <h3>Boolean Format</h3>
+ <div class="desc">
+ <p> true means: the node is parent node.</p>
+ <p> false means: the node is not parent node.</p>
+ </div>
+ <h3>Examples of treeNode</h3>
+ <h4>1. Judge whether the first selected node is the parent node.</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var sNodes = treeObj.getSelectedNodes();
+if (sNodes.length > 0) {
+ var isParent = sNodes[0].isParent;
+}
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.level.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.level.html index d1511624..94fe3d7d 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.level.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.level.html @@ -1,25 +1,25 @@ -<div class="apiDetail"> -<div> - <h2><span>Number</span><span class="path">treeNode.</span>level</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 level of node</p> - <p class="highlight_red">Do not initialize or modify it, it is created by the zTree.</p> - </div> - </div> - <h3>Number Format</h3> - <div class="desc"> - <p class="highlight_red">The root node's level = 0, and next level = 1, ...</p> - </div> - <h3>Examples of treeNode</h3> - <h4>1. Get the first selected node's level</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var sNodes = treeObj.getSelectedNodes(); -if (sNodes.length > 0) { - var level = sNodes[0].level; -} -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Number</span><span class="path">treeNode.</span>level</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 level of node</p>
+ <p class="highlight_red">Do not initialize or modify it, it is created by the zTree.</p>
+ </div>
+ </div>
+ <h3>Number Format</h3>
+ <div class="desc">
+ <p class="highlight_red">The root node's level = 0, and next level = 1, ...</p>
+ </div>
+ <h3>Examples of treeNode</h3>
+ <h4>1. Get the first selected node's level</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var sNodes = treeObj.getSelectedNodes();
+if (sNodes.length > 0) {
+ var level = sNodes[0].level;
+}
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.name.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.name.html index fa508ccb..84769362 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.name.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.name.html @@ -1,25 +1,25 @@ -<div class="apiDetail"> -<div> - <h2><span>String</span><span class="path">treeNode.</span>name</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 node's name</p> - <p class="highlight_red">1. If you want to change 'name' attribute, please modify the 'setting.data.key.name' attribute.</p> - <p>Default: undenfined</p> - </div> - </div> - <h3>String Format</h3> - <div class="desc"> - <p>String object. The HTML special characters are escaped</p> - </div> - <h3>Examples of treeNode</h3> - <h4>1. Set node's name to 'test1', 'test2', 'test3'</h4> - <pre xmlns=""><code>var nodes = [ - { "id":1, "name":"test1"}, - { "id":2, "name":"test2"}, - { "id":3, "name":"test3"} -]</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>String</span><span class="path">treeNode.</span>name</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 node's name</p>
+ <p class="highlight_red">1. If you want to change 'name' attribute, please modify the 'setting.data.key.name' attribute.</p>
+ <p>Default: undenfined</p>
+ </div>
+ </div>
+ <h3>String Format</h3>
+ <div class="desc">
+ <p>String object. The HTML special characters are escaped</p>
+ </div>
+ <h3>Examples of treeNode</h3>
+ <h4>1. Set node's name to 'test1', 'test2', 'test3'</h4>
+ <pre xmlns=""><code>var nodes = [
+ { "id":1, "name":"test1"},
+ { "id":2, "name":"test2"},
+ { "id":3, "name":"test3"}
+]</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.nocheck.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.nocheck.html index 6c4880c8..a05d0bd2 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.nocheck.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.nocheck.html @@ -1,26 +1,26 @@ -<div class="apiDetail"> -<div> - <h2><span>Boolean</span><span class="path">treeNode.</span>nocheck</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>1. Set node to hide the checkbox or radio. It is valid when <span class="highlight_red">[setting.check.enable = true]</span></p> - <p class="highlight_red">2. zTree support identification string 'true' & 'false'.</p> - <p>Default: false</p> - </div> - </div> - <h3>Boolean Format</h3> - <div class="desc"> - <p class="highlight_red">true means: the node hide the checkbox or radio, and don't affect the checked association, and don't affect its parent node's half-checked status.</p> - <p class="highlight_red">false means: the node show the checkbox or radio.</p> - </div> - <h3>Examples of treeNode</h3> - <h4>1. Hide some node's checkbox / radio </h4> - <pre xmlns=""><code>var nodes = [ - { "id":1, "name":"test1", "nocheck":true}, - { "id":2, "name":"test2"}, - { "id":3, "name":"test3"} -]</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Boolean</span><span class="path">treeNode.</span>nocheck</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>1. Set node to hide the checkbox or radio. It is valid when <span class="highlight_red">[setting.check.enable = true]</span></p>
+ <p class="highlight_red">2. zTree support identification string 'true' & 'false'.</p>
+ <p>Default: false</p>
+ </div>
+ </div>
+ <h3>Boolean Format</h3>
+ <div class="desc">
+ <p class="highlight_red">true means: the node hide the checkbox or radio, and don't affect the checked association, and don't affect its parent node's half-checked status.</p>
+ <p class="highlight_red">false means: the node show the checkbox or radio.</p>
+ </div>
+ <h3>Examples of treeNode</h3>
+ <h4>1. Hide some node's checkbox / radio </h4>
+ <pre xmlns=""><code>var nodes = [
+ { "id":1, "name":"test1", "nocheck":true},
+ { "id":2, "name":"test2"},
+ { "id":3, "name":"test3"}
+]</code></pre>
+</div>
</div>
\ No newline at end of file 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 index bc910de3..030a14f6 100644 --- 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 @@ -1,30 +1,30 @@ -<div class="apiDetail"> -<div> - <h2><span>Boolean</span><span class="path">treeNode.</span>open</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>Used to record the parent node's expand status.</p> - <p class="highlight_red">1. When zTree initialize the node data, if you set treeNode.open = true, zTree will default expand this parent node.</p> - <p class="highlight_red">2. Leaf node's 'open' attribute is false.</p> - <p class="highlight_red">3. In order to solve the problem of someone make json data, supporting "false", "true" format of the data string.</p> - <p class="highlight_red">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+) </p> - <p>Default: false</p> - </div> - </div> - <h3>Boolean Format</h3> - <div class="desc"> - <p> true means: the parent node is expanded.</p> - <p> false means: the parent node is collapsed.</p> - </div> - <h3>Examples of treeNode</h3> - <h4>1. Get the first selected node's expand status.</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var sNodes = treeObj.getSelectedNodes(); -if (sNodes.length > 0) { - var isOpen = sNodes[0].open; -} -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Boolean</span><span class="path">treeNode.</span>open</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>Used to record the parent node's expand status.</p>
+ <p class="highlight_red">1. When zTree initialize the node data, if you set treeNode.open = true, zTree will default expand this parent node.</p>
+ <p class="highlight_red">2. Leaf node's 'open' attribute is false.</p>
+ <p class="highlight_red">3. In order to solve the problem of someone make json data, supporting "false", "true" format of the data string.</p>
+ <p class="highlight_red">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+) </p>
+ <p>Default: false</p>
+ </div>
+ </div>
+ <h3>Boolean Format</h3>
+ <div class="desc">
+ <p> true means: the parent node is expanded.</p>
+ <p> false means: the parent node is collapsed.</p>
+ </div>
+ <h3>Examples of treeNode</h3>
+ <h4>1. Get the first selected node's expand status.</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var sNodes = treeObj.getSelectedNodes();
+if (sNodes.length > 0) {
+ var isOpen = sNodes[0].open;
+}
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.parentTId.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.parentTId.html index 0bc2a6d6..0f0bcfe0 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.parentTId.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.parentTId.html @@ -1,27 +1,27 @@ -<div class="apiDetail"> -<div> - <h2><span>String</span><span class="path">treeNode.</span>parentTId</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 unique identifier of node's parent node.</p> - <p class="highlight_red">1. zTree v3.x using 'parentTId' replaced the original 'parentNode' attribute, and increased getParentNode () method, in order to avoid the original 'parentNode' cause the clone () method infinite loop.</p> - <p class="highlight_red">2. Do not initialize or modify it, it is created by the zTree.</p> - </div> - </div> - <h3>String Format</h3> - <div class="desc"> - <p>String object of node's parent node's tId. please see API about 'treeNode.tId'</p> - <p class="highlight_red">If treeNode is root node, parentTId is null.</p> - </div> - <h3>Examples of treeNode</h3> - <h4>1. Get the first selected node's parent node's tId</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var sNodes = treeObj.getSelectedNodes(); -if (sNodes.length > 0) { - var parentTId = sNodes[0].parentTId; -} -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>String</span><span class="path">treeNode.</span>parentTId</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 unique identifier of node's parent node.</p>
+ <p class="highlight_red">1. zTree v3.x using 'parentTId' replaced the original 'parentNode' attribute, and increased getParentNode () method, in order to avoid the original 'parentNode' cause the clone () method infinite loop.</p>
+ <p class="highlight_red">2. Do not initialize or modify it, it is created by the zTree.</p>
+ </div>
+ </div>
+ <h3>String Format</h3>
+ <div class="desc">
+ <p>String object of node's parent node's tId. please see API about 'treeNode.tId'</p>
+ <p class="highlight_red">If treeNode is root node, parentTId is null.</p>
+ </div>
+ <h3>Examples of treeNode</h3>
+ <h4>1. Get the first selected node's parent node's tId</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var sNodes = treeObj.getSelectedNodes();
+if (sNodes.length > 0) {
+ var parentTId = sNodes[0].parentTId;
+}
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.tId.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.tId.html index 18c2855a..1b4fd771 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.tId.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.tId.html @@ -1,25 +1,25 @@ -<div class="apiDetail"> -<div> - <h2><span>String</span><span class="path">treeNode.</span>tId</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 unique identifier of node.</p> - <p class="highlight_red">Do not initialize or modify it, it is created by the zTree.</p> - </div> - </div> - <h3>String Format</h3> - <div class="desc"> - <p>tId rules: setting.treeId + "_" + zTree counter</p> - </div> - <h3>Examples of treeNode</h3> - <h4>1. Get the first selected node's tId</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var sNodes = treeObj.getSelectedNodes(); -if (sNodes.length > 0) { - var tId = sNodes[0].tId; -} -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>String</span><span class="path">treeNode.</span>tId</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 unique identifier of node.</p>
+ <p class="highlight_red">Do not initialize or modify it, it is created by the zTree.</p>
+ </div>
+ </div>
+ <h3>String Format</h3>
+ <div class="desc">
+ <p>tId rules: setting.treeId + "_" + zTree counter</p>
+ </div>
+ <h3>Examples of treeNode</h3>
+ <h4>1. Get the first selected node's tId</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var sNodes = treeObj.getSelectedNodes();
+if (sNodes.length > 0) {
+ var tId = sNodes[0].tId;
+}
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.target.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.target.html index 176a7a35..2f12e1c2 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.target.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.target.html @@ -1,24 +1,24 @@ -<div class="apiDetail"> -<div> - <h2><span>String</span><span class="path">treeNode.</span>target</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>Used to set the target where the node is clicked to open url. It is valid when <span class="highlight_red">[treeNode.url exists]</span></p> - <p>Default: undefined</p> - </div> - </div> - <h3>String Format</h3> - <div class="desc"> - <p>As same as <a> tag's 'target' attribute. e.g. '_blank', '_self' or other window name.</p> - <p>if this attribute is omitted, zTree default set it to '_blank'</p> - </div> - <h3>Exmaples of treeNode</h3> - <h4>1. Set target is '_blank'</h4> - <pre xmlns=""><code>var nodes = [ - { "id":1, "name":"test1", "url":"http://myTest.com", "target":"_blank"}, - ...... -]</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>String</span><span class="path">treeNode.</span>target</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>Used to set the target where the node is clicked to open url. It is valid when <span class="highlight_red">[treeNode.url exists]</span></p>
+ <p>Default: undefined</p>
+ </div>
+ </div>
+ <h3>String Format</h3>
+ <div class="desc">
+ <p>As same as <a> tag's 'target' attribute. e.g. '_blank', '_self' or other window name.</p>
+ <p>if this attribute is omitted, zTree default set it to '_blank'</p>
+ </div>
+ <h3>Exmaples of treeNode</h3>
+ <h4>1. Set target is '_blank'</h4>
+ <pre xmlns=""><code>var nodes = [
+ { "id":1, "name":"test1", "url":"http://myTest.com", "target":"_blank"},
+ ......
+]</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.url.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.url.html index 55524455..77e10e81 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.url.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.url.html @@ -1,25 +1,25 @@ -<div class="apiDetail"> -<div> - <h2><span>String</span><span class="path">treeNode.</span>url</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 URL of node link</p> - <p class="highlight_red">1. In edit mode (setting.edit.enable = true) , this feature fails. If you must use a similar feature, please use the 'onClick' callback for their own control.</p> - <p class="highlight_red">2. If you use the 'onClick' callback function to control opening URL , then set the URL in the other custom attribute, do not use the 'url' attribute.</p> - <p>Default: undefined</p> - </div> - </div> - <h3>String Format</h3> - <div class="desc"> - <p>As same as <a> tag's 'href' attribute.</p> - </div> - <h3>Examples of treeNode</h3> - <h4>1. Set the URL is 'g.cn'</h4> - <pre xmlns=""><code>var nodes = [ - { "id":1, "name":"Google CN", "url":"http://g.cn"}, - ...... -]</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>String</span><span class="path">treeNode.</span>url</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 URL of node link</p>
+ <p class="highlight_red">1. In edit mode (setting.edit.enable = true) , this feature fails. If you must use a similar feature, please use the 'onClick' callback for their own control.</p>
+ <p class="highlight_red">2. If you use the 'onClick' callback function to control opening URL , then set the URL in the other custom attribute, do not use the 'url' attribute.</p>
+ <p>Default: undefined</p>
+ </div>
+ </div>
+ <h3>String Format</h3>
+ <div class="desc">
+ <p>As same as <a> tag's 'href' attribute.</p>
+ </div>
+ <h3>Examples of treeNode</h3>
+ <h4>1. Set the URL is 'g.cn'</h4>
+ <pre xmlns=""><code>var nodes = [
+ { "id":1, "name":"Google CN", "url":"http://g.cn"},
+ ......
+]</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.zAsync.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.zAsync.html index b3ff4145..3847c043 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.zAsync.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/treeNode.zAsync.html @@ -1,28 +1,28 @@ -<div class="apiDetail"> -<div> - <h2><span>Boolean</span><span class="path">treeNode.</span>zAsync</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>Judge whether the parent node's child nodes will be loaded asynchronously when the parent node is expanded.</p> - <p class="highlight_red">Do not initialize or modify it, it is created by the zTree.</p> - <p class="highlight_red">Default:false (the parent node which have no child nodes); true (the parent node which have child nodes or the leaf node)</p> - </div> - </div> - <h3>Boolean Format</h3> - <div class="desc"> - <p> true means: the node's child nodes will not be loaded asynchronously when the parent node is expanded.</p> - <p> false means: the node's child nodes will be loaded asynchronously when the parent node is expanded.</p> - <p class="highlight_red"> This attribute will not effect to 'reAsyncChildNodes()' method</p> - </div> - <h3>Examples of treeNode</h3> - <h4>1. Judge whether the first selected node's child nodes has been loaded asynchronously</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var sNodes = treeObj.getSelectedNodes(); -if (sNodes.length > 0) { - var zAsync = sNodes[0].zAsync; -} -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Boolean</span><span class="path">treeNode.</span>zAsync</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>Judge whether the parent node's child nodes will be loaded asynchronously when the parent node is expanded.</p>
+ <p class="highlight_red">Do not initialize or modify it, it is created by the zTree.</p>
+ <p class="highlight_red">Default:false (the parent node which have no child nodes); true (the parent node which have child nodes or the leaf node)</p>
+ </div>
+ </div>
+ <h3>Boolean Format</h3>
+ <div class="desc">
+ <p> true means: the node's child nodes will not be loaded asynchronously when the parent node is expanded.</p>
+ <p> false means: the node's child nodes will be loaded asynchronously when the parent node is expanded.</p>
+ <p class="highlight_red"> This attribute will not effect to 'reAsyncChildNodes()' method</p>
+ </div>
+ <h3>Examples of treeNode</h3>
+ <h4>1. Judge whether the first selected node's child nodes has been loaded asynchronously</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var sNodes = treeObj.getSelectedNodes();
+if (sNodes.length > 0) {
+ var zAsync = sNodes[0].zAsync;
+}
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.addNodes.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.addNodes.html index 680ccc4e..7f6e2492 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.addNodes.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.addNodes.html @@ -1,42 +1,42 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(parentNode, newNodes, isSilent)</span><span class="path">zTreeObj.</span>addNodes</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>Add nodes</p> - <p class="highlight_red">In order to avoid duplication data resulting from repeated initialization, zTree v3.x will automatically clone node data when zTree initialized or add nodes. If you need to get the data objects within the zTree, please get the return value of this method.</p> - <p class="highlight_red">Please use zTree object to executing the method.</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>parentNode</b><span>JSON</span></h4> - <p>The additional node's parent node. If additional node is root node, please the parentNode is null.</p> - <p class="highlight_red">Please ensure this node data object is a data object within zTree.</p> - <h4 class="topLine"><b>newNodes</b><span>JSON / Array(JSON)</span></h4> - <p>The node data's JSON object collection which need to increase, refer to 'treeNode treeNode data details'</p> - <p class="highlight_red">1. zTree v3.x support to add single node, that is, if you only add a node, you can don't use the array.</p> - <p class="highlight_red">2. If you use simple data model, please refer to the attributes within the 'setting.data.simpleData'.</p> - <h4 class="topLine"><b>isSilent</b><span>Boolean</span></h4> - <p>Set whether to automatically expand the parent node, after add nodes.</p> - <p>isSilent = true means: don't auto expand the parent node. Otherwise auto expand.</p> - <h4 class="topLine"><b>Return </b><span>Array(JSON)</span></h4> - <p>return the new nodes in zTree</p> - <p class="highlight_red">If the newNodes is single data object, the return value is a array with length is 1.</p> - <p class="highlight_red">Note: the node data JSON object in the return value is not equal to the JSON object in the 'newNodes'.</p> - </div> - <h3>Examples of function</h3> - <h4>1. Add one root node to zTree which id is 'tree'</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var newNode = {name:"newNode1"}; -newNode = treeObj.addNodes(null, newNode); -</code></pre> - <h4>2. Add three root nodes to zTree which id is 'tree'</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var newNodes = [{name:"newNode1"}, {name:"newNode2"}, {name:"newNode3"}]; -newNodes = treeObj.addNodes(null, newNodes); -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(parentNode, newNodes, isSilent)</span><span class="path">zTreeObj.</span>addNodes</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>Add nodes</p>
+ <p class="highlight_red">In order to avoid duplication data resulting from repeated initialization, zTree v3.x will automatically clone node data when zTree initialized or add nodes. If you need to get the data objects within the zTree, please get the return value of this method.</p>
+ <p class="highlight_red">Please use zTree object to executing the method.</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>parentNode</b><span>JSON</span></h4>
+ <p>The additional node's parent node. If additional node is root node, please the parentNode is null.</p>
+ <p class="highlight_red">Please ensure this node data object is a data object within zTree.</p>
+ <h4 class="topLine"><b>newNodes</b><span>JSON / Array(JSON)</span></h4>
+ <p>The node data's JSON object collection which need to increase, refer to 'treeNode treeNode data details'</p>
+ <p class="highlight_red">1. zTree v3.x support to add single node, that is, if you only add a node, you can don't use the array.</p>
+ <p class="highlight_red">2. If you use simple data model, please refer to the attributes within the 'setting.data.simpleData'.</p>
+ <h4 class="topLine"><b>isSilent</b><span>Boolean</span></h4>
+ <p>Set whether to automatically expand the parent node, after add nodes.</p>
+ <p>isSilent = true means: don't auto expand the parent node. Otherwise auto expand.</p>
+ <h4 class="topLine"><b>Return </b><span>Array(JSON)</span></h4>
+ <p>return the new nodes in zTree</p>
+ <p class="highlight_red">If the newNodes is single data object, the return value is a array with length is 1.</p>
+ <p class="highlight_red">Note: the node data JSON object in the return value is not equal to the JSON object in the 'newNodes'.</p>
+ </div>
+ <h3>Examples of function</h3>
+ <h4>1. Add one root node to zTree which id is 'tree'</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var newNode = {name:"newNode1"};
+newNode = treeObj.addNodes(null, newNode);
+</code></pre>
+ <h4>2. Add three root nodes to zTree which id is 'tree'</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var newNodes = [{name:"newNode1"}, {name:"newNode2"}, {name:"newNode3"}];
+newNodes = treeObj.addNodes(null, newNodes);
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.cancelEditName.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.cancelEditName.html index 8afdae0b..a2ae133e 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.cancelEditName.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.cancelEditName.html @@ -1,30 +1,30 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(newName)</span><span class="path">zTreeObj.</span>cancelEditName</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>Cancel the edit name status. Can restore the original name, and can also force assigned to a new name.</p> - <p class="highlight_red">Please use zTree object to executing the method.</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>newName</b><span>String</span></h4> - <p>Re given a new name</p> - <p class="highlight_red">If this parameter is omitted, then restore the original name.</p> - <h4 class="topLine"><b>Return </b><span>none</span></h4> - <p>no return value</p> - </div> - <h3>Examples of function</h3> - <h4>1. Cancel edit name, and restore the original name.</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -treeObj.cancelEditName(); -</code></pre> - <h4>2. Cancel edit name , and set the new name.</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -treeObj.cancelEditName("test_new_name"); -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(newName)</span><span class="path">zTreeObj.</span>cancelEditName</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>Cancel the edit name status. Can restore the original name, and can also force assigned to a new name.</p>
+ <p class="highlight_red">Please use zTree object to executing the method.</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>newName</b><span>String</span></h4>
+ <p>Re given a new name</p>
+ <p class="highlight_red">If this parameter is omitted, then restore the original name.</p>
+ <h4 class="topLine"><b>Return </b><span>none</span></h4>
+ <p>no return value</p>
+ </div>
+ <h3>Examples of function</h3>
+ <h4>1. Cancel edit name, and restore the original name.</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+treeObj.cancelEditName();
+</code></pre>
+ <h4>2. Cancel edit name , and set the new name.</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+treeObj.cancelEditName("test_new_name");
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.cancelSelectedNode.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.cancelSelectedNode.html index 581c2d2b..b5ecef6b 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.cancelSelectedNode.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.cancelSelectedNode.html @@ -1,35 +1,35 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(treeNode)</span><span class="path">zTreeObj.</span>cancelSelectedNode</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>To cancel the selected node.</p> - <p class="highlight_red">zTree v3.x support to select multiple nodes, so you can cancel a single selected node, and you can cancel all of the selected nodes too.</p> - <p class="highlight_red">Please use zTree object to executing the method.</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which need to cancel selected.</p> - <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p> - <p class="highlight_red">If you omit this parameter, zTree will cancel all of the selected nodes.</p> - <h4 class="topLine"><b>Return </b><span>none</span></h4> - <p>no return value</p> - </div> - <h3>Examples of function</h3> - <h4>1. Cancel all of the selected nodes</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -treeObj.cancelSelectedNode(); -</code></pre> - <h4>2. Cancel the first node of the selected nodes</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var nodes = treeObj.getSelectedNode(); -if (nodes.length>0) { - treeObj.cancelSelectedNode(nodes[0]); -} -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(treeNode)</span><span class="path">zTreeObj.</span>cancelSelectedNode</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>To cancel the selected node.</p>
+ <p class="highlight_red">zTree v3.x support to select multiple nodes, so you can cancel a single selected node, and you can cancel all of the selected nodes too.</p>
+ <p class="highlight_red">Please use zTree object to executing the method.</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which need to cancel selected.</p>
+ <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p>
+ <p class="highlight_red">If you omit this parameter, zTree will cancel all of the selected nodes.</p>
+ <h4 class="topLine"><b>Return </b><span>none</span></h4>
+ <p>no return value</p>
+ </div>
+ <h3>Examples of function</h3>
+ <h4>1. Cancel all of the selected nodes</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+treeObj.cancelSelectedNode();
+</code></pre>
+ <h4>2. Cancel the first node of the selected nodes</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getSelectedNode();
+if (nodes.length>0) {
+ treeObj.cancelSelectedNode(nodes[0]);
+}
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.checkAllNodes.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.checkAllNodes.html index 276b6294..5213e18a 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.checkAllNodes.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.checkAllNodes.html @@ -1,29 +1,29 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(checked)</span><span class="path">zTreeObj.</span>checkAllNodes</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>Check or unCheck all nodes which have been initialized. It is valid when <span class="highlight_red">[setting.check.enable = true & setting.check.chkStyle = "checkbox"]</span></p> - <p class="highlight_red">This method does not trigger 'beforeCheck' or 'onCheck' callback function.</p> - <p class="highlight_red">Please use zTree object to executing the method.</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>checked</b><span>Boolean</span></h4> - <p>checked = true means: check all nodes.</p> - <p>checked = false means: uncheck all nodes.</p> - <p class="highlight_red">Don't affect the node which 'nochecked' attribute is true.</p> - <p class="highlight_red">Don't affect the node is not loaded.</p> - <h4 class="topLine"><b>Return </b><span>none</span></h4> - <p>no return value</p> - </div> - <h3>Examples of function</h3> - <h4>1. check all nodes</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -treeObj.checkAllNodes(true); -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(checked)</span><span class="path">zTreeObj.</span>checkAllNodes</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>Check or unCheck all nodes which have been initialized. It is valid when <span class="highlight_red">[setting.check.enable = true & setting.check.chkStyle = "checkbox"]</span></p>
+ <p class="highlight_red">This method does not trigger 'beforeCheck' or 'onCheck' callback function.</p>
+ <p class="highlight_red">Please use zTree object to executing the method.</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>checked</b><span>Boolean</span></h4>
+ <p>checked = true means: check all nodes.</p>
+ <p>checked = false means: uncheck all nodes.</p>
+ <p class="highlight_red">Don't affect the node which 'nochecked' attribute is true.</p>
+ <p class="highlight_red">Don't affect the node is not loaded.</p>
+ <h4 class="topLine"><b>Return </b><span>none</span></h4>
+ <p>no return value</p>
+ </div>
+ <h3>Examples of function</h3>
+ <h4>1. check all nodes</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+treeObj.checkAllNodes(true);
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.checkNode.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.checkNode.html index 7411ef86..948982c7 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.checkNode.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.checkNode.html @@ -1,44 +1,44 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(treeNode, checked, checkTypeFlag, callbackFlag)</span><span class="path">zTreeObj.</span>checkNode</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>Check or unCheck a single node. It is valid when <span class="highlight_red">[setting.check.enable = true]</span></p> - <p class="highlight_red">Use checkNode() method of zTree v3.x can trigger 'beforeCheck' or 'onCheck' callback function. for reduce redundant code.</p> - <p class="highlight_red">Please use zTree object to executing the method.</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which need to be checked or unchecked.</p> - <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p> - <h4 class="topLine"><b>checked</b><span>Boolean</span></h4> - <p>checked = true means: check node.</p> - <p>checked = false means: uncheck node.</p> - <p class="highlight_red">If this parameter is omitted, then toggle check or uncheck depend this node's expanded state.</p> - <p class="highlight_red">Don't affect the node which 'nochecked' attribute is true.</p> - <h4 class="topLine"><b>checkTypeFlag</b><span>Boolean</span></h4> - <p>checkTypeFlag = true means: According to 'setting.check.chkboxType' attribute automatically check or uncheck the parent and child nodes.</p> - <p>checkTypeFlag = false means: only check or uncheck this node, don't affect its parent and child nodes.</p> - <p class="highlight_red">When checkTypeFlag = false and treeNode.checked = checked, will not trigger callback function.</p> - <p class="highlight_red">Don't affect the parent and child nodes which 'nochecked' attribute is true.</p> - <h4 class="topLine"><b>callbackFlag</b><span>Boolean</span></h4> - <p>callbackFlag = true means: call this method, will trigger 'beforeCheck' & 'onCheck' callback.</p> - <p>callbackFlag = false means: call this method, will not trigger callback.</p> - <p class="highlight_red">If this parameter is omitted, it is same as 'callbackFlag = false'</p> - <h4 class="topLine"><b>Return </b><span>none</span></h4> - <p>no return value</p> - </div> - <h3>Examples of function</h3> - <h4>1. check the selected nodes</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var nodes = treeObj.getSelectedNodes(); -for (var i=0, l=nodes.length; i < l; i++) { - treeObj.checkNode(nodes[i], true, true); -} -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(treeNode, checked, checkTypeFlag, callbackFlag)</span><span class="path">zTreeObj.</span>checkNode</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>Check or unCheck a single node. It is valid when <span class="highlight_red">[setting.check.enable = true]</span></p>
+ <p class="highlight_red">Use checkNode() method of zTree v3.x can trigger 'beforeCheck' or 'onCheck' callback function. for reduce redundant code.</p>
+ <p class="highlight_red">Please use zTree object to executing the method.</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which need to be checked or unchecked.</p>
+ <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p>
+ <h4 class="topLine"><b>checked</b><span>Boolean</span></h4>
+ <p>checked = true means: check node.</p>
+ <p>checked = false means: uncheck node.</p>
+ <p class="highlight_red">If this parameter is omitted, then toggle check or uncheck depend this node's expanded state.</p>
+ <p class="highlight_red">Don't affect the node which 'nochecked' attribute is true.</p>
+ <h4 class="topLine"><b>checkTypeFlag</b><span>Boolean</span></h4>
+ <p>checkTypeFlag = true means: According to 'setting.check.chkboxType' attribute automatically check or uncheck the parent and child nodes.</p>
+ <p>checkTypeFlag = false means: only check or uncheck this node, don't affect its parent and child nodes.</p>
+ <p class="highlight_red">When checkTypeFlag = false and treeNode.checked = checked, will not trigger callback function.</p>
+ <p class="highlight_red">Don't affect the parent and child nodes which 'nochecked' attribute is true.</p>
+ <h4 class="topLine"><b>callbackFlag</b><span>Boolean</span></h4>
+ <p>callbackFlag = true means: call this method, will trigger 'beforeCheck' & 'onCheck' callback.</p>
+ <p>callbackFlag = false means: call this method, will not trigger callback.</p>
+ <p class="highlight_red">If this parameter is omitted, it is same as 'callbackFlag = false'</p>
+ <h4 class="topLine"><b>Return </b><span>none</span></h4>
+ <p>no return value</p>
+ </div>
+ <h3>Examples of function</h3>
+ <h4>1. check the selected nodes</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getSelectedNodes();
+for (var i=0, l=nodes.length; i < l; i++) {
+ treeObj.checkNode(nodes[i], true, true);
+}
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.copyNode.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.copyNode.html index a98e84de..1f157f89 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.copyNode.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.copyNode.html @@ -1,47 +1,47 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(targetNode, treeNode, moveType, isSilent)</span><span class="path">zTreeObj.</span>copyNode</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>Copy the node</p> - <p class="highlight_red">When copy nodes, zTree v3.x will clone nodes. If you need to get the data object in zTree, please get the return value of this method.</p> - <p class="highlight_red">Please use zTree object to executing the method.</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>targetNode</b><span>JSON</span></h4> - <p>JSON data object of the node which will be target.</p> - <p class="highlight_red">If copy the node to root node, please set the 'targetNode' to null.</p> - <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p> - <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which will be copied.</p> - <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p> - <h4 class="topLine"><b>moveType</b><span>String</span></h4> - <p>Copied to the target node's relative position.</p> - <p class="highlight_red">"inner" means: to be taregetNode's child node.</p> - <p class="highlight_red">"prev" means: to be taregetNode's previous sibling node.</p> - <p class="highlight_red">"next" means: to be taregetNode's next sibling node.</p> - <h4 class="topLine"><b>isSilent</b><span>Boolean</span></h4> - <p>After copy the node, whether to automatically expand its parent node.</p> - <p>isSilent = true means: don't expand its parent node.</p> - <p>isSilent = false or omit this parameter means: expand its parent node.</p> - <h4 class="topLine"><b>Return </b><span>JSON</span></h4> - <p>return the new node in zTree</p> - <p class="highlight_red">Note: the node data JSON object in the return value is not equal to the treeNode.</p> - </div> - <h3>Examples of function</h3> - <h4>1. Copy the second root node to the first root node's child node.</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var nodes = treeObj.getNodes(); -treeObj.copyNode(nodes[0], nodes[1], "inner"); -</code></pre> - <h4>2. Copy the second root node to the first root node's previous sibling node.</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var nodes = treeObj.getNodes(); -treeObj.copyNode(nodes[0], nodes[1], "before"); -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(targetNode, treeNode, moveType, isSilent)</span><span class="path">zTreeObj.</span>copyNode</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>Copy the node</p>
+ <p class="highlight_red">When copy nodes, zTree v3.x will clone nodes. If you need to get the data object in zTree, please get the return value of this method.</p>
+ <p class="highlight_red">Please use zTree object to executing the method.</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>targetNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which will be target.</p>
+ <p class="highlight_red">If copy the node to root node, please set the 'targetNode' to null.</p>
+ <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p>
+ <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which will be copied.</p>
+ <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p>
+ <h4 class="topLine"><b>moveType</b><span>String</span></h4>
+ <p>Copied to the target node's relative position.</p>
+ <p class="highlight_red">"inner" means: to be taregetNode's child node.</p>
+ <p class="highlight_red">"prev" means: to be taregetNode's previous sibling node.</p>
+ <p class="highlight_red">"next" means: to be taregetNode's next sibling node.</p>
+ <h4 class="topLine"><b>isSilent</b><span>Boolean</span></h4>
+ <p>After copy the node, whether to automatically expand its parent node.</p>
+ <p>isSilent = true means: don't expand its parent node.</p>
+ <p>isSilent = false or omit this parameter means: expand its parent node.</p>
+ <h4 class="topLine"><b>Return </b><span>JSON</span></h4>
+ <p>return the new node in zTree</p>
+ <p class="highlight_red">Note: the node data JSON object in the return value is not equal to the treeNode.</p>
+ </div>
+ <h3>Examples of function</h3>
+ <h4>1. Copy the second root node to the first root node's child node.</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getNodes();
+treeObj.copyNode(nodes[0], nodes[1], "inner");
+</code></pre>
+ <h4>2. Copy the second root node to the first root node's previous sibling node.</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getNodes();
+treeObj.copyNode(nodes[0], nodes[1], "before");
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.destroy.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.destroy.html index 80c52811..c4dc8cae 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.destroy.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.destroy.html @@ -1,25 +1,25 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(treeId)</span><span class="path">zTreeObj.</span>destroy</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>From zTree v3.4, zTree support the method for destruction.</p> - <p>1. This method can destroy the zTreeObj's zTree.</p> - <p class="highlight_red">2. If you want to destory all of the zTrees, you can use the '$.fn.zTree.destroy()' method.</p> - <p class="highlight_red">3. If you want to use the tree which has been destroyed, you must use the 'init()' method at first.</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>Return </b><span>none</span></h4> - <p>no return value</p> - </div> - <h3>Examples of function</h3> - <h4>1. destroy the zTree which its id is 'treeDemo'</h4> - <pre xmlns=""><code>var zTreeObj = $.fn.zTree.getZTreeObj("treeDemo"); -zTreeObj.destroy(); -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(treeId)</span><span class="path">zTreeObj.</span>destroy</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>From zTree v3.4, zTree support the method for destruction.</p>
+ <p>1. This method can destroy the zTreeObj's zTree.</p>
+ <p class="highlight_red">2. If you want to destory all of the zTrees, you can use the '$.fn.zTree.destroy()' method.</p>
+ <p class="highlight_red">3. If you want to use the tree which has been destroyed, you must use the 'init()' method at first.</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>Return </b><span>none</span></h4>
+ <p>no return value</p>
+ </div>
+ <h3>Examples of function</h3>
+ <h4>1. destroy the zTree which its id is 'treeDemo'</h4>
+ <pre xmlns=""><code>var zTreeObj = $.fn.zTree.getZTreeObj("treeDemo");
+zTreeObj.destroy();
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.editName.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.editName.html index 92ac5c1c..003af49e 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.editName.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.editName.html @@ -1,29 +1,29 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(treeNode)</span><span class="path">zTreeObj.</span>editName</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>Start editing the node's name.</p> - <p class="highlight_red">1. If need to cancel editing the node's name, please use cancelEditName(newName) method.</p> - <p class="highlight_red">2. This method can be used to set the editing node‘s input box to get focus.</p> - <p class="highlight_red">3. Please use zTree object to executing the method.</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which will be editing name</p> - <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p> - <h4 class="topLine"><b>Retrun </b><span>none</span></h4> - <p>no return value</p> - </div> - <h3>Examples of function</h3> - <h4>1. Start editing the first selected node's name.</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var nodes = treeObj.getNodes(); -treeObj.editName(nodes[0]); -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(treeNode)</span><span class="path">zTreeObj.</span>editName</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>Start editing the node's name.</p>
+ <p class="highlight_red">1. If need to cancel editing the node's name, please use cancelEditName(newName) method.</p>
+ <p class="highlight_red">2. This method can be used to set the editing node‘s input box to get focus.</p>
+ <p class="highlight_red">3. Please use zTree object to executing the method.</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which will be editing name</p>
+ <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p>
+ <h4 class="topLine"><b>Retrun </b><span>none</span></h4>
+ <p>no return value</p>
+ </div>
+ <h3>Examples of function</h3>
+ <h4>1. Start editing the first selected node's name.</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getNodes();
+treeObj.editName(nodes[0]);
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.expandAll.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.expandAll.html index ef28a316..d5be0fa8 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.expandAll.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.expandAll.html @@ -1,30 +1,30 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(expandFlag)</span><span class="path">zTreeObj.</span>expandAll</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>Expand or collapse all nodes.</p> - <p class="highlight_red">This method does not trigger 'beforeExpand / onExpand' or 'beforeCollapse / onCollapse' callback function.</p> - <p class="highlight_red">Please use zTree object to executing the method.</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>expandFlag</b><span>Boolean</span></h4> - <p>expandFlag = true means: expand all nodes.</p> - <p>expandFlag = false means: collapse all nodes.</p> - <h4 class="topLine"><b>Return </b><span>Boolean</span></h4> - <p>return the result of expand or collapse.</p> - <p>true means: expand all nodes</p> - <p>false means: collapse all nodes</p> - <p>null means: have no parent node to expand or collapse.</p> - </div> - <h3>Examples of function</h3> - <h4>1. Expand all nodes</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -treeObj.expandAll(true); -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(expandFlag)</span><span class="path">zTreeObj.</span>expandAll</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>Expand or collapse all nodes.</p>
+ <p class="highlight_red">This method does not trigger 'beforeExpand / onExpand' or 'beforeCollapse / onCollapse' callback function.</p>
+ <p class="highlight_red">Please use zTree object to executing the method.</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>expandFlag</b><span>Boolean</span></h4>
+ <p>expandFlag = true means: expand all nodes.</p>
+ <p>expandFlag = false means: collapse all nodes.</p>
+ <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
+ <p>return the result of expand or collapse.</p>
+ <p>true means: expand all nodes</p>
+ <p>false means: collapse all nodes</p>
+ <p>null means: have no parent node to expand or collapse.</p>
+ </div>
+ <h3>Examples of function</h3>
+ <h4>1. Expand all nodes</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+treeObj.expandAll(true);
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.expandNode.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.expandNode.html index f99ff77d..6e103a1c 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.expandNode.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.expandNode.html @@ -1,50 +1,50 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(treeNode, expandFlag, sonSign, focus, callbackFlag)</span><span class="path">zTreeObj.</span>expandNode</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>Expand or collapse single node.</p> - <p class="highlight_red">Use expandNode() method of zTree v3.x can trigger 'beforeExpand / onExpand' or 'beforeCollapse / onCollapse' callback function. for reduce redundant code.</p> - <p class="highlight_red">Please use zTree object to executing the method.</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which will be expanded or collapsed</p> - <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p> - <h4 class="topLine"><b>expandFlag</b><span>Boolean</span></h4> - <p>expandFlag = true means: expand the node.</p> - <p>expandFlag = false means: collapse the node.</p> - <p class="highlight_red">If this parameter is omitted, then toggle expand or collapse depend this node's expanded state.</p> - <h4 class="topLine"><b>sonSign</b><span>Boolean</span></h4> - <p>sonSign = true means: expand or collapse all of the child nodes depend the 'expandFlag' parameter.</p> - <p>sonSign = false means: only expand or collapse this node.</p> - <p class="highlight_red">When sonSign = false and treeNode.open = expandFlag, will not trigger the callback.</p> - <p class="highlight_red">If this parameter is omitted, it is same as 'sonSign = false'.</p> - <h4 class="topLine"><b>focus</b><span>Boolean</span></h4> - <p>focus = true means: after expand or collapse, set the focus of this node for view.</p> - <p>focus = false means: after expand or coolapse, don't set the focus of this node.</p> - <p class="highlight_red">If this parameter is omitted, it is same as 'focus = true'.</p> - <h4 class="topLine"><b>callbackFlag</b><span>Boolean</span></h4> - <p>callbackFlag = true means: call this method, will trigger 'beforeExpand / onExpand' or 'beforeCollapse / onCollapse' callback.</p> - <p>callbackFlag = false means: call this method, will not trigger callback.</p> - <p class="highlight_red">If this parameter is omitted, it is same as 'callbackFlag = false'</p> - <h4 class="topLine"><b>Return </b><span>Boolean</span></h4> - <p>return the result of expand or collapse.</p> - <p>true means: expand node</p> - <p>false means: collapse node</p> - <p>null means: the node is not parent node.</p> - </div> - <h3>Examples of function</h3> - <h4>1. Expand the first selected node. (and expand this node's child nodes)</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var nodes = treeObj.getSelectedNodes(); -if (nodes.length>0) { - treeObj.expandNode(nodes[0], true, true, true); -} -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(treeNode, expandFlag, sonSign, focus, callbackFlag)</span><span class="path">zTreeObj.</span>expandNode</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>Expand or collapse single node.</p>
+ <p class="highlight_red">Use expandNode() method of zTree v3.x can trigger 'beforeExpand / onExpand' or 'beforeCollapse / onCollapse' callback function. for reduce redundant code.</p>
+ <p class="highlight_red">Please use zTree object to executing the method.</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which will be expanded or collapsed</p>
+ <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p>
+ <h4 class="topLine"><b>expandFlag</b><span>Boolean</span></h4>
+ <p>expandFlag = true means: expand the node.</p>
+ <p>expandFlag = false means: collapse the node.</p>
+ <p class="highlight_red">If this parameter is omitted, then toggle expand or collapse depend this node's expanded state.</p>
+ <h4 class="topLine"><b>sonSign</b><span>Boolean</span></h4>
+ <p>sonSign = true means: expand or collapse all of the child nodes depend the 'expandFlag' parameter.</p>
+ <p>sonSign = false means: only expand or collapse this node.</p>
+ <p class="highlight_red">When sonSign = false and treeNode.open = expandFlag, will not trigger the callback.</p>
+ <p class="highlight_red">If this parameter is omitted, it is same as 'sonSign = false'.</p>
+ <h4 class="topLine"><b>focus</b><span>Boolean</span></h4>
+ <p>focus = true means: after expand or collapse, set the focus of this node for view.</p>
+ <p>focus = false means: after expand or coolapse, don't set the focus of this node.</p>
+ <p class="highlight_red">If this parameter is omitted, it is same as 'focus = true'.</p>
+ <h4 class="topLine"><b>callbackFlag</b><span>Boolean</span></h4>
+ <p>callbackFlag = true means: call this method, will trigger 'beforeExpand / onExpand' or 'beforeCollapse / onCollapse' callback.</p>
+ <p>callbackFlag = false means: call this method, will not trigger callback.</p>
+ <p class="highlight_red">If this parameter is omitted, it is same as 'callbackFlag = false'</p>
+ <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
+ <p>return the result of expand or collapse.</p>
+ <p>true means: expand node</p>
+ <p>false means: collapse node</p>
+ <p>null means: the node is not parent node.</p>
+ </div>
+ <h3>Examples of function</h3>
+ <h4>1. Expand the first selected node. (and expand this node's child nodes)</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getSelectedNodes();
+if (nodes.length>0) {
+ treeObj.expandNode(nodes[0], true, true, true);
+}
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.getChangeCheckedNodes.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.getChangeCheckedNodes.html index d0f9cf3b..1193a9ac 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.getChangeCheckedNodes.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.getChangeCheckedNodes.html @@ -1,24 +1,24 @@ -<div class="apiDetail"> -<div> - <h2><span>Function()</span><span class="path">zTreeObj.</span>getChangeCheckedNodes</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>Get the collection of nodes which be changed checked status. (Compared with the original data checkedOld) It is valid when <span class="highlight_red">[setting.check.enable = true]</span></p> - <p class="highlight_red">Please use zTree object to executing the method.</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>Return </b><span>Array(JSON)</span></h4> - <p>return the collection of nodes which be changed checked status (Array)</p> - <p class="highlight_red">If you need to get the collection of nodes which changed the checked status, when nodes be checked or unchecked, so please set treeNode.checkedOld = treeNode.checked ( for all of the be changed checked status nodes ).</p> - </div> - <h3>Examples of function</h3> - <h4>1. Get the collection of nodes which be changed checked status</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var nodes = treeObj.getChangeCheckedNodes(); -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function()</span><span class="path">zTreeObj.</span>getChangeCheckedNodes</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>Get the collection of nodes which be changed checked status. (Compared with the original data checkedOld) It is valid when <span class="highlight_red">[setting.check.enable = true]</span></p>
+ <p class="highlight_red">Please use zTree object to executing the method.</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>Return </b><span>Array(JSON)</span></h4>
+ <p>return the collection of nodes which be changed checked status (Array)</p>
+ <p class="highlight_red">If you need to get the collection of nodes which changed the checked status, when nodes be checked or unchecked, so please set treeNode.checkedOld = treeNode.checked ( for all of the be changed checked status nodes ).</p>
+ </div>
+ <h3>Examples of function</h3>
+ <h4>1. Get the collection of nodes which be changed checked status</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getChangeCheckedNodes();
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.getCheckedNodes.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.getCheckedNodes.html index 7a7c3b97..8fa348f2 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.getCheckedNodes.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.getCheckedNodes.html @@ -1,28 +1,28 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(checked)</span><span class="path">zTreeObj.</span>getCheckedNodes</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>Get the collection of nodes which be checked or unchecked. It is valid when <span class="highlight_red">[setting.check.enable = true]</span></p> - <p class="highlight_red">Please use zTree object to executing the method.</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>checked</b><span>Boolean</span></h4> - <p>checked = true means: get the collection of nodes which be checked</p> - <p>checked = false means: get the collection of nodes which be unchecked</p> - <p class="highlight_red">If this parameter is omitted, it is same as 'checked = true'</p> - <p class="highlight_red">Don't get the nodes which 'nochecked' attribute is true.</p> - <h4 class="topLine"><b>Return </b><span>Array(JSON)</span></h4> - <p>return the collection of nodes which be checked or unchecked. (Array)</p> - </div> - <h3>Examples of function</h3> - <h4>1. Get the collection of nodes which be checked.</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var nodes = treeObj.getCheckedNodes(true); -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(checked)</span><span class="path">zTreeObj.</span>getCheckedNodes</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>Get the collection of nodes which be checked or unchecked. It is valid when <span class="highlight_red">[setting.check.enable = true]</span></p>
+ <p class="highlight_red">Please use zTree object to executing the method.</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>checked</b><span>Boolean</span></h4>
+ <p>checked = true means: get the collection of nodes which be checked</p>
+ <p>checked = false means: get the collection of nodes which be unchecked</p>
+ <p class="highlight_red">If this parameter is omitted, it is same as 'checked = true'</p>
+ <p class="highlight_red">Don't get the nodes which 'nochecked' attribute is true.</p>
+ <h4 class="topLine"><b>Return </b><span>Array(JSON)</span></h4>
+ <p>return the collection of nodes which be checked or unchecked. (Array)</p>
+ </div>
+ <h3>Examples of function</h3>
+ <h4>1. Get the collection of nodes which be checked.</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getCheckedNodes(true);
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.getNodeByParam.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.getNodeByParam.html index 05572e73..58f86a6d 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.getNodeByParam.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.getNodeByParam.html @@ -1,32 +1,32 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(key, value, parentNode)</span><span class="path">zTreeObj.</span>getNodeByParam</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>According to the node data attribute, search the node which exactly matches, and get the JSON object of node.</p> - <p class="highlight_red">Please use zTree object to executing the method.</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>key</b><span>String</span></h4> - <p>The name of attribute which need to exactly match</p> - <h4 class="topLine"><b>value</b><span>?</span></h4> - <p>The value which need to exactly match, can be any type, please ensure its type consistent with the attribute values.</p> - <h4 class="topLine"><b>parentNode</b><span>JSON</span></h4> - <p>The search range, you can search node from a parent node's child nodes.</p> - <p class="highlight_red">If this parameter is omitted, zTree will search node from all nodes.</p> - <h4 class="topLine"><b>Return </b><span>JSON</span></h4> - <p>JSON data object of the node which be searched.</p> - <p class="highlight_red">1. If search none node, return null.</p> - <p class="highlight_red">2. If there are many nodes can be searched, return the first node.</p> - </div> - <h3>Examples of function</h3> - <h4>1. Search the node which its 'id' attribute is 1.</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var node = treeObj.getNodeByParam("id", 1, null); -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(key, value, parentNode)</span><span class="path">zTreeObj.</span>getNodeByParam</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>According to the node data attribute, search the node which exactly matches, and get the JSON object of node.</p>
+ <p class="highlight_red">Please use zTree object to executing the method.</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>key</b><span>String</span></h4>
+ <p>The name of attribute which need to exactly match</p>
+ <h4 class="topLine"><b>value</b><span>?</span></h4>
+ <p>The value which need to exactly match, can be any type, please ensure its type consistent with the attribute values.</p>
+ <h4 class="topLine"><b>parentNode</b><span>JSON</span></h4>
+ <p>The search range, you can search node from a parent node's child nodes.</p>
+ <p class="highlight_red">If this parameter is omitted, zTree will search node from all nodes.</p>
+ <h4 class="topLine"><b>Return </b><span>JSON</span></h4>
+ <p>JSON data object of the node which be searched.</p>
+ <p class="highlight_red">1. If search none node, return null.</p>
+ <p class="highlight_red">2. If there are many nodes can be searched, return the first node.</p>
+ </div>
+ <h3>Examples of function</h3>
+ <h4>1. Search the node which its 'id' attribute is 1.</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var node = treeObj.getNodeByParam("id", 1, null);
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.getNodeByTId.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.getNodeByTId.html index 8fd26ea0..6635df80 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.getNodeByTId.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.getNodeByTId.html @@ -1,27 +1,27 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(tId)</span><span class="path">zTreeObj.</span>getNodeByTId</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>According the unique identifier tId of zTree, quick get the node's JSON data object.</p> - <p class="highlight_red">Get the node from the cache, don't need to search from all nodes.</p> - <p class="highlight_red">Please use zTree object to executing the method.</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>tId</b><span>String</span></h4> - <p>The unique identifier of node.</p> - <h4 class="topLine"><b>Return </b><span>JSON</span></h4> - <p>JSON data object of the node which be searched.</p> - <p class="highlight_red">If no result, return null.</p> - </div> - <h3>Examples of function</h3> - <h4>1. 1. Search the node which its 'tId' attribute is 'tree_10'</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var node = treeObj.getNodeByTId("tree_10"); -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(tId)</span><span class="path">zTreeObj.</span>getNodeByTId</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>According the unique identifier tId of zTree, quick get the node's JSON data object.</p>
+ <p class="highlight_red">Get the node from the cache, don't need to search from all nodes.</p>
+ <p class="highlight_red">Please use zTree object to executing the method.</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>tId</b><span>String</span></h4>
+ <p>The unique identifier of node.</p>
+ <h4 class="topLine"><b>Return </b><span>JSON</span></h4>
+ <p>JSON data object of the node which be searched.</p>
+ <p class="highlight_red">If no result, return null.</p>
+ </div>
+ <h3>Examples of function</h3>
+ <h4>1. 1. Search the node which its 'tId' attribute is 'tree_10'</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var node = treeObj.getNodeByTId("tree_10");
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.getNodeIndex.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.getNodeIndex.html index ad828e7a..95ae1f39 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.getNodeIndex.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.getNodeIndex.html @@ -1,30 +1,30 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(treeNode)</span><span class="path">zTreeObj.</span>getNodeIndex</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>Get the node's index in the same level nodes. (start from 0)</p> - <p class="highlight_red">Please use zTree object to executing the method.</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which need to get index.</p> - <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p> - <h4 class="topLine"><b>Return </b><span>Number</span></h4> - <p class="highlight_red">return the index. (start from 0)</p> - <p class="highlight_red">If there is no this node, return -1.</p> - </div> - <h3>Examples of function</h3> - <h4>1. Get the first selected node's index in the same level nodes.</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var nodes = treeObj.getSelectedNodes(); -if (nodes.length>0) { - var index = treeObj.getNodeIndex(nodes[0]); -} -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(treeNode)</span><span class="path">zTreeObj.</span>getNodeIndex</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>Get the node's index in the same level nodes. (start from 0)</p>
+ <p class="highlight_red">Please use zTree object to executing the method.</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which need to get index.</p>
+ <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p>
+ <h4 class="topLine"><b>Return </b><span>Number</span></h4>
+ <p class="highlight_red">return the index. (start from 0)</p>
+ <p class="highlight_red">If there is no this node, return -1.</p>
+ </div>
+ <h3>Examples of function</h3>
+ <h4>1. Get the first selected node's index in the same level nodes.</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getSelectedNodes();
+if (nodes.length>0) {
+ var index = treeObj.getNodeIndex(nodes[0]);
+}
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.getNodes.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.getNodes.html index 5906a434..e0e4ddb5 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.getNodes.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.getNodes.html @@ -1,26 +1,26 @@ -<div class="apiDetail"> -<div> - <h2><span>Function()</span><span class="path">zTreeObj.</span>getNodes</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>Get all of the nodes in zTree</p> - <p class="highlight_red">Please use zTree object to executing the method.</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>Return </b><span>Array(JSON)</span></h4> - <p>return all of the nodes</p> - <p class="highlight_red">1. This array is a collection of the root nodes (the default child nodes are in the 'children' attributes);</p> - <p class="highlight_red">2. Traverse all the nodes need to use recursion, or the use of transformToArray() method make the nodes to be a simple array.</p> - <p class="highlight_red">3. For the asynchronous loading mode, can't get the nodes which are yet loaded.</p> - </div> - <h3>Examples of function</h3> - <h4>1. Get all of the nodes</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var nodes = treeObj.getNodes(); -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function()</span><span class="path">zTreeObj.</span>getNodes</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>Get all of the nodes in zTree</p>
+ <p class="highlight_red">Please use zTree object to executing the method.</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>Return </b><span>Array(JSON)</span></h4>
+ <p>return all of the nodes</p>
+ <p class="highlight_red">1. This array is a collection of the root nodes (the default child nodes are in the 'children' attributes);</p>
+ <p class="highlight_red">2. Traverse all the nodes need to use recursion, or the use of transformToArray() method make the nodes to be a simple array.</p>
+ <p class="highlight_red">3. For the asynchronous loading mode, can't get the nodes which are yet loaded.</p>
+ </div>
+ <h3>Examples of function</h3>
+ <h4>1. Get all of the nodes</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getNodes();
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.getNodesByFilter.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.getNodesByFilter.html index 2cd6baa8..1705440a 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.getNodesByFilter.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.getNodesByFilter.html @@ -1,43 +1,43 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(filter, isSingle, parentNode, invokeParam)</span><span class="path">zTreeObj.</span>getNodesByFilter</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>Search the single node's data or collection of nodes's data by custom rules.</p> - <p class="highlight_red">Can be customized complex search rules.</p> - <p class="highlight_red">Please use zTree object to executing the method.</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>filter</b><span>Function</span></h4> - <p>Custom search function. e.g. function filter(node) {...}</p> - <p>filter's parameter: node (node's data -- JSON)</p> - <p>filter's return: boolean (true means: match the rules; false means: don't match the rules)</p> - <h4 class="topLine"><b>isSingle</b><span>Boolean</span></h4> - <p>isSingle = true means: search only one node</p> - <p>isSingle = false means: search the array of the nodes</p> - <p class="highlight_red">If this parameter is omitted, as same as false</p> - <h4 class="topLine"><b>parentNode</b><span>JSON</span></h4> - <p>The search range, you can search node from a parent node's child nodes.</p> - <p class="highlight_red">If this parameter is omitted, zTree will search node from all nodes.</p> - <h4 class="topLine"><b>invokeParam</b><span>anything</span></h4> - <p>Custom data object by user, used to calculate in the filter function.</p> - <h4 class="topLine"><b>Return </b><span>Array(JSON) / JSON</span></h4> - <p>If isSingle = true, will return the first node's data (JSON) what be matched. If no match, return null.</p> - <p>If isSingle = false, will return the array of all nodes's data what be matched. if no match, return [ ].</p> - </div> - <h3>Examples of function</h3> - <h4>1. Search the nodes which their 'name' contains 'test' and 'level' is 2.</h4> - <pre xmlns=""><code>function filter(node) { - return (node.level == 2 && node.name.indexOf("test")>-1); -} -...... -var treeObj = $.fn.zTree.getZTreeObj("tree"); -var node = treeObj.getNodesByFilter(filter, true); // search only one node -var nodes = treeObj.getNodesByFilter(filter); // search the array of the nodes -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(filter, isSingle, parentNode, invokeParam)</span><span class="path">zTreeObj.</span>getNodesByFilter</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>Search the single node's data or collection of nodes's data by custom rules.</p>
+ <p class="highlight_red">Can be customized complex search rules.</p>
+ <p class="highlight_red">Please use zTree object to executing the method.</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>filter</b><span>Function</span></h4>
+ <p>Custom search function. e.g. function filter(node) {...}</p>
+ <p>filter's parameter: node (node's data -- JSON)</p>
+ <p>filter's return: boolean (true means: match the rules; false means: don't match the rules)</p>
+ <h4 class="topLine"><b>isSingle</b><span>Boolean</span></h4>
+ <p>isSingle = true means: search only one node</p>
+ <p>isSingle = false means: search the array of the nodes</p>
+ <p class="highlight_red">If this parameter is omitted, as same as false</p>
+ <h4 class="topLine"><b>parentNode</b><span>JSON</span></h4>
+ <p>The search range, you can search node from a parent node's child nodes.</p>
+ <p class="highlight_red">If this parameter is omitted, zTree will search node from all nodes.</p>
+ <h4 class="topLine"><b>invokeParam</b><span>anything</span></h4>
+ <p>Custom data object by user, used to calculate in the filter function.</p>
+ <h4 class="topLine"><b>Return </b><span>Array(JSON) / JSON</span></h4>
+ <p>If isSingle = true, will return the first node's data (JSON) what be matched. If no match, return null.</p>
+ <p>If isSingle = false, will return the array of all nodes's data what be matched. if no match, return [ ].</p>
+ </div>
+ <h3>Examples of function</h3>
+ <h4>1. Search the nodes which their 'name' contains 'test' and 'level' is 2.</h4>
+ <pre xmlns=""><code>function filter(node) {
+ return (node.level == 2 && node.name.indexOf("test")>-1);
+}
+......
+var treeObj = $.fn.zTree.getZTreeObj("tree");
+var node = treeObj.getNodesByFilter(filter, true); // search only one node
+var nodes = treeObj.getNodesByFilter(filter); // search the array of the nodes
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.getNodesByParam.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.getNodesByParam.html index 3173af47..cb9335ae 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.getNodesByParam.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.getNodesByParam.html @@ -1,31 +1,31 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(key, value, parentNode)</span><span class="path">zTreeObj.</span>getNodesByParam</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>According to the node data attribute, search the nodes which exactly matches, and get the JSON objects collection of nodes.</p> - <p class="highlight_red">Please use zTree object to executing the method.</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>key</b><span>String</span></h4> - <p>The name of attribute which need to exactly match</p> - <h4 class="topLine"><b>value</b><span>?</span></h4> - <p>The value which need to exactly match, can be any type, please ensure its type consistent with the attribute values.</p> - <h4 class="topLine"><b>parentNode</b><span>JSON</span></h4> - <p>The search range, you can search node from a parent node's child nodes.</p> - <p class="highlight_red">If this parameter is omitted, zTree will search node from all nodes.</p> - <h4 class="topLine"><b>Return </b><span>Array(JSON)</span></h4> - <p>The JSON data objects collection of the nodes which be searched.</p> - <p class="highlight_red">If search none node, return [ ].</p> - </div> - <h3>Examples of function</h3> - <h4>1. Search the nodes which their 'name' attribute is 'test'.</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var nodes = treeObj.getNodesByParam("name", "test", null); -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(key, value, parentNode)</span><span class="path">zTreeObj.</span>getNodesByParam</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>According to the node data attribute, search the nodes which exactly matches, and get the JSON objects collection of nodes.</p>
+ <p class="highlight_red">Please use zTree object to executing the method.</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>key</b><span>String</span></h4>
+ <p>The name of attribute which need to exactly match</p>
+ <h4 class="topLine"><b>value</b><span>?</span></h4>
+ <p>The value which need to exactly match, can be any type, please ensure its type consistent with the attribute values.</p>
+ <h4 class="topLine"><b>parentNode</b><span>JSON</span></h4>
+ <p>The search range, you can search node from a parent node's child nodes.</p>
+ <p class="highlight_red">If this parameter is omitted, zTree will search node from all nodes.</p>
+ <h4 class="topLine"><b>Return </b><span>Array(JSON)</span></h4>
+ <p>The JSON data objects collection of the nodes which be searched.</p>
+ <p class="highlight_red">If search none node, return [ ].</p>
+ </div>
+ <h3>Examples of function</h3>
+ <h4>1. Search the nodes which their 'name' attribute is 'test'.</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getNodesByParam("name", "test", null);
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.getNodesByParamFuzzy.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.getNodesByParamFuzzy.html index 14b6c294..9bce4707 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.getNodesByParamFuzzy.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.getNodesByParamFuzzy.html @@ -1,32 +1,32 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(key, value, parentNode)</span><span class="path">zTreeObj.</span>getNodesByParamFuzzy</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>According to the node data attribute, search the nodes which fuzzy matches, and get the JSON objects collection of nodes.</p> - <p class="highlight_red">Please use zTree object to executing the method.</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>key</b><span>String</span></h4> - <p>The name of attribute which need to fuzzy match</p> - <h4 class="topLine"><b>value</b><span>String</span></h4> - <p>The value which need to fuzzy match.</p> - <p class="highlight_red">The type of value can only be String</p> - <h4 class="topLine"><b>parentNode</b><span>JSON</span></h4> - <p>The search range, you can search node from a parent node's child nodes.</p> - <p class="highlight_red">If this parameter is omitted, zTree will search node from all nodes.</p> - <h4 class="topLine"><b>Return </b><span>Array(JSON)</span></h4> - <p>The JSON data objects collection of the nodes which be searched.</p> - <p class="highlight_red">If search none node, return [ ].</p> - </div> - <h3>Examples of function</h3> - <h4>1. Search the nodes which their 'name' attribute contains the string 'test'.</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var nodes = treeObj.getNodesByParamFuzzy("name", "test", null); -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(key, value, parentNode)</span><span class="path">zTreeObj.</span>getNodesByParamFuzzy</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>According to the node data attribute, search the nodes which fuzzy matches, and get the JSON objects collection of nodes.</p>
+ <p class="highlight_red">Please use zTree object to executing the method.</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>key</b><span>String</span></h4>
+ <p>The name of attribute which need to fuzzy match</p>
+ <h4 class="topLine"><b>value</b><span>String</span></h4>
+ <p>The value which need to fuzzy match.</p>
+ <p class="highlight_red">The type of value can only be String</p>
+ <h4 class="topLine"><b>parentNode</b><span>JSON</span></h4>
+ <p>The search range, you can search node from a parent node's child nodes.</p>
+ <p class="highlight_red">If this parameter is omitted, zTree will search node from all nodes.</p>
+ <h4 class="topLine"><b>Return </b><span>Array(JSON)</span></h4>
+ <p>The JSON data objects collection of the nodes which be searched.</p>
+ <p class="highlight_red">If search none node, return [ ].</p>
+ </div>
+ <h3>Examples of function</h3>
+ <h4>1. Search the nodes which their 'name' attribute contains the string 'test'.</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getNodesByParamFuzzy("name", "test", null);
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.getSelectedNodes.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.getSelectedNodes.html index 4a0f0608..48ffad93 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.getSelectedNodes.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.getSelectedNodes.html @@ -1,23 +1,23 @@ -<div class="apiDetail"> -<div> - <h2><span>Function()</span><span class="path">zTreeObj.</span>getSelectedNodes</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>Get the JSON data objects collection of the selected nodes in zTree.</p> - <p class="highlight_red">Please use zTree object to executing the method.</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>Return </b><span>Array(JSON)</span></h4> - <p>The JSON data objects collection of the selected nodes.</p> - </div> - <h3>Examples of function</h3> - <h4>1. get the selected nodes</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var nodes = treeObj.getSelectedNodes(); -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function()</span><span class="path">zTreeObj.</span>getSelectedNodes</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>Get the JSON data objects collection of the selected nodes in zTree.</p>
+ <p class="highlight_red">Please use zTree object to executing the method.</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>Return </b><span>Array(JSON)</span></h4>
+ <p>The JSON data objects collection of the selected nodes.</p>
+ </div>
+ <h3>Examples of function</h3>
+ <h4>1. get the selected nodes</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getSelectedNodes();
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.hideNode.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.hideNode.html index f02f523d..7276309f 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.hideNode.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.hideNode.html @@ -1,29 +1,29 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(treeNode)</span><span class="path">zTreeObj.</span>hideNode</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exhide</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>To hide any node.</p> - <p class="highlight_red">1. This feature can't support the 'exedit' feature, so please don't use this feature in edit mode.</p> - <p class="highlight_red">2. If you hide or show the nodes, it will effect the 'isFirstNode' and 'isLastNode' attribute.</p> - <p class="highlight_red">3. Please use zTree object to executing the method.</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which will be hidden</p> - <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p> - <h4 class="topLine"><b>Retrun </b><span>none</span></h4> - <p>no return value</p> - </div> - <h3>Examples of function</h3> - <h4>1. hide the first root node.</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var nodes = treeObj.getNodes(); -treeObj.hideNode(nodes[0]); -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(treeNode)</span><span class="path">zTreeObj.</span>hideNode</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exhide</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>To hide any node.</p>
+ <p class="highlight_red">1. This feature can't support the 'exedit' feature, so please don't use this feature in edit mode.</p>
+ <p class="highlight_red">2. If you hide or show the nodes, it will effect the 'isFirstNode' and 'isLastNode' attribute.</p>
+ <p class="highlight_red">3. Please use zTree object to executing the method.</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which will be hidden</p>
+ <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p>
+ <h4 class="topLine"><b>Retrun </b><span>none</span></h4>
+ <p>no return value</p>
+ </div>
+ <h3>Examples of function</h3>
+ <h4>1. hide the first root node.</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getNodes();
+treeObj.hideNode(nodes[0]);
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.hideNodes.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.hideNodes.html index 9bf8e6b5..9836bec5 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.hideNodes.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.hideNodes.html @@ -1,29 +1,29 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(treeNodes)</span><span class="path">zTreeObj.</span>hideNodes</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exhide</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>To hide a group of nodes.</p> - <p class="highlight_red">1. This feature can't support the 'exedit' feature, so please don't use this feature in edit mode.</p> - <p class="highlight_red">2. If you hide or show the nodes, it will effect the 'isFirstNode' and 'isLastNode' attribute.</p> - <p class="highlight_red">3. Please use zTree object to executing the method.</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeNodes</b><span>Array(JSON)</span></h4> - <p>the array of the nodes which will be hidden</p> - <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p> - <h4 class="topLine"><b>Retrun </b><span>none</span></h4> - <p>no return value</p> - </div> - <h3>Examples of function</h3> - <h4>1. hide the first root node's children.</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var nodes = treeObj.getNodes(); -treeObj.hideNodes(nodes[0].children); -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(treeNodes)</span><span class="path">zTreeObj.</span>hideNodes</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exhide</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>To hide a group of nodes.</p>
+ <p class="highlight_red">1. This feature can't support the 'exedit' feature, so please don't use this feature in edit mode.</p>
+ <p class="highlight_red">2. If you hide or show the nodes, it will effect the 'isFirstNode' and 'isLastNode' attribute.</p>
+ <p class="highlight_red">3. Please use zTree object to executing the method.</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeNodes</b><span>Array(JSON)</span></h4>
+ <p>the array of the nodes which will be hidden</p>
+ <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p>
+ <h4 class="topLine"><b>Retrun </b><span>none</span></h4>
+ <p>no return value</p>
+ </div>
+ <h3>Examples of function</h3>
+ <h4>1. hide the first root node's children.</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getNodes();
+treeObj.hideNodes(nodes[0].children);
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.moveNode.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.moveNode.html index 93f066bf..a44a1562 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.moveNode.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.moveNode.html @@ -1,49 +1,49 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(targetNode, treeNode, moveType, isSilent)</span><span class="path">zTreeObj.</span>moveNode</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>Move the node</p> - <p class="highlight_red">Please use zTree object to executing the method.</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>targetNode</b><span>JSON</span></h4> - <p>JSON data object of the node which will be target.</p> - <p class="highlight_red">If move the node to root node, please set the 'targetNode' to null.</p> - <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p> - <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which will be moved.</p> - <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p> - <h4 class="topLine"><b>moveType</b><span>String</span></h4> - <p>Moved to the target node's relative position.</p> - <p class="highlight_red">"inner" means: to be taregetNode's child node.</p> - <p class="highlight_red">"prev" means: to be taregetNode's previous sibling node.</p> - <p class="highlight_red">"next" means: to be taregetNode's next sibling node.</p> - <h4 class="topLine"><b>isSilent</b><span>Boolean</span></h4> - <p>After move the node, whether to automatically expand its parent node.</p> - <p>isSilent = true means: don't expand its parent node.</p> - <p>isSilent = false or omit this parameter means: expand its parent node.</p> - <h4 class="topLine"><b>Return </b><span>JSON</span></h4> - <p>return the node which be moved, it is same as the 'treeNode' parameter.</p> - <p class="highlight_red">Return null means: move node has failed. The cause:<br/> - 1. the targetNode is the treeNode's parent node, and moveType = "inner"<br/> - 2. the targetNode is the treeNode's child node. - </p> - </div> - <h3>Examples of function</h3> - <h4>1. Move the second root node to the first root node's child node.</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var nodes = treeObj.getNodes(); -treeObj.moveNode(nodes[0], nodes[1], "inner"); -</code></pre> - <h4>2. Move the second root node to the first root node's previous sibling node.</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var nodes = treeObj.getNodes(); -treeObj.moveNode(nodes[0], nodes[1], "prev"); -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(targetNode, treeNode, moveType, isSilent)</span><span class="path">zTreeObj.</span>moveNode</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>Move the node</p>
+ <p class="highlight_red">Please use zTree object to executing the method.</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>targetNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which will be target.</p>
+ <p class="highlight_red">If move the node to root node, please set the 'targetNode' to null.</p>
+ <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p>
+ <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which will be moved.</p>
+ <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p>
+ <h4 class="topLine"><b>moveType</b><span>String</span></h4>
+ <p>Moved to the target node's relative position.</p>
+ <p class="highlight_red">"inner" means: to be taregetNode's child node.</p>
+ <p class="highlight_red">"prev" means: to be taregetNode's previous sibling node.</p>
+ <p class="highlight_red">"next" means: to be taregetNode's next sibling node.</p>
+ <h4 class="topLine"><b>isSilent</b><span>Boolean</span></h4>
+ <p>After move the node, whether to automatically expand its parent node.</p>
+ <p>isSilent = true means: don't expand its parent node.</p>
+ <p>isSilent = false or omit this parameter means: expand its parent node.</p>
+ <h4 class="topLine"><b>Return </b><span>JSON</span></h4>
+ <p>return the node which be moved, it is same as the 'treeNode' parameter.</p>
+ <p class="highlight_red">Return null means: move node has failed. The cause:<br/>
+ 1. the targetNode is the treeNode's parent node, and moveType = "inner"<br/>
+ 2. the targetNode is the treeNode's child node.
+ </p>
+ </div>
+ <h3>Examples of function</h3>
+ <h4>1. Move the second root node to the first root node's child node.</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getNodes();
+treeObj.moveNode(nodes[0], nodes[1], "inner");
+</code></pre>
+ <h4>2. Move the second root node to the first root node's previous sibling node.</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getNodes();
+treeObj.moveNode(nodes[0], nodes[1], "prev");
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.reAsyncChildNodes.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.reAsyncChildNodes.html index 63a0896c..c6c44782 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.reAsyncChildNodes.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.reAsyncChildNodes.html @@ -1,42 +1,42 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(parentNode, reloadType, isSilent)</span><span class="path">zTreeObj.</span>reAsyncChildNodes</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>Forced asynchronous loading child nodes of parent node. It is valid when <span class="highlight_red">[setting.async.enable = true]</span></p> - <p class="highlight_red">You can use this method to reload child nodes.</p> - <p class="highlight_red">Please use zTree object to executing the method.</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>parentNode</b><span>JSON</span></h4> - <p>The parent node which will asynchronous loading child nodes.</p> - <p class="highlight_red">1. If parentNode = null, it is same as reload root nodes.</p> - <p class="highlight_red">2. If parentNode.isParent = false, don't load nodes.</p> - <p class="highlight_red">3. Please ensure that this data object is an internal node data object in zTree.</p> - <h4 class="topLine"><b>reloadType</b><span>String</span></h4> - <p>reloadType = "refresh" means: reload child nodes.</p> - <p>reloadType != "refresh" means: append to load child nodes.</p> - <h4 class="topLine"><b>isSilent</b><span>Boolean</span></h4> - <p>Set whether to automatically expand the parent node, after load nodes.</p> - <p>isSilent = true means: don't auto expand the parent node. Otherwise auto expand.</p> - <h4 class="topLine"><b>Return </b><span>none</span></h4> - <p>no return value</p> - </div> - <h3>Examples of function</h3> - <h4>1. reload root nodes</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -treeObj.reAsyncChildNodes(null, "refresh"); -</code></pre> - <h4>2. reload the first selected node's child nodes.</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var nodes = treeObj.getSelectedNodes(); -if (nodes.length>0) { - treeObj.reAsyncChildNodes(nodes[0], "refresh"); -} -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(parentNode, reloadType, isSilent)</span><span class="path">zTreeObj.</span>reAsyncChildNodes</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>Forced asynchronous loading child nodes of parent node. It is valid when <span class="highlight_red">[setting.async.enable = true]</span></p>
+ <p class="highlight_red">You can use this method to reload child nodes.</p>
+ <p class="highlight_red">Please use zTree object to executing the method.</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>parentNode</b><span>JSON</span></h4>
+ <p>The parent node which will asynchronous loading child nodes.</p>
+ <p class="highlight_red">1. If parentNode = null, it is same as reload root nodes.</p>
+ <p class="highlight_red">2. If parentNode.isParent = false, don't load nodes.</p>
+ <p class="highlight_red">3. Please ensure that this data object is an internal node data object in zTree.</p>
+ <h4 class="topLine"><b>reloadType</b><span>String</span></h4>
+ <p>reloadType = "refresh" means: reload child nodes.</p>
+ <p>reloadType != "refresh" means: append to load child nodes.</p>
+ <h4 class="topLine"><b>isSilent</b><span>Boolean</span></h4>
+ <p>Set whether to automatically expand the parent node, after load nodes.</p>
+ <p>isSilent = true means: don't auto expand the parent node. Otherwise auto expand.</p>
+ <h4 class="topLine"><b>Return </b><span>none</span></h4>
+ <p>no return value</p>
+ </div>
+ <h3>Examples of function</h3>
+ <h4>1. reload root nodes</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+treeObj.reAsyncChildNodes(null, "refresh");
+</code></pre>
+ <h4>2. reload the first selected node's child nodes.</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getSelectedNodes();
+if (nodes.length>0) {
+ treeObj.reAsyncChildNodes(nodes[0], "refresh");
+}
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.refresh.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.refresh.html index 8316192c..22b7bfe1 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.refresh.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.refresh.html @@ -1,24 +1,24 @@ -<div class="apiDetail"> -<div> - <h2><span>Function()</span><span class="path">zTreeObj.</span>refresh</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>Refresh zTree</p> - <p class="highlight_red">If you have no special need, try not to use this method. If you refresh single node, please use updateNode() method. If you refresh child nodes in dynamic mode, please use the reAsyncChildNodes() method.</p> - <p class="highlight_red">Please use zTree object to executing the method.</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>Return </b><span>none</span></h4> - <p>no return value</p> - </div> - <h3>Examples of function</h3> - <h4>1. refresh zTree </h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -treeObj.refresh(); -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function()</span><span class="path">zTreeObj.</span>refresh</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>Refresh zTree</p>
+ <p class="highlight_red">If you have no special need, try not to use this method. If you refresh single node, please use updateNode() method. If you refresh child nodes in dynamic mode, please use the reAsyncChildNodes() method.</p>
+ <p class="highlight_red">Please use zTree object to executing the method.</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>Return </b><span>none</span></h4>
+ <p>no return value</p>
+ </div>
+ <h3>Examples of function</h3>
+ <h4>1. refresh zTree </h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+treeObj.refresh();
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.removeChildNodes.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.removeChildNodes.html index c249e175..fbcb4a11 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.removeChildNodes.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.removeChildNodes.html @@ -1,32 +1,32 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(parentNode)</span><span class="path">zTreeObj.</span>removeChildNodes</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>Remove a parent node's child nodes</p> - <p class="highlight_red">1. After remove child nodes, the parent node will become a leaf node. Such as the need to maintain the parent node is still a parent node, set 'setting.data.keep.parent' attribute.</p> - <p class="highlight_red">2. Do not use this method to empty the root. If you need to empty the root, you can initialization zTree, and set the initial nodes is null.</p> - <p class="highlight_red">3. This method does not trigger any callback function.</p> - <p class="highlight_red">Please use zTree object to executing the method.</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>parentNode</b><span>JSON</span></h4> - <p>The parent node which need to clear its child nodes.</p> - <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p> - <h4 class="topLine"><b>Return </b><span>Array(JSON)</span></h4> - <p>Return the parent node's child nodes which have been removed. If has no child nodes, return null.</p> - </div> - <h3>Examples of function</h3> - <h4>1. Remove the first selected node's child nodes</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var nodes = treeObj.getSelectedNodes(); -if (nodes && nodes.length>0) { - treeObj.removeChildNodes(nodes[0]); -} -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(parentNode)</span><span class="path">zTreeObj.</span>removeChildNodes</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>Remove a parent node's child nodes</p>
+ <p class="highlight_red">1. After remove child nodes, the parent node will become a leaf node. Such as the need to maintain the parent node is still a parent node, set 'setting.data.keep.parent' attribute.</p>
+ <p class="highlight_red">2. Do not use this method to empty the root. If you need to empty the root, you can initialization zTree, and set the initial nodes is null.</p>
+ <p class="highlight_red">3. This method does not trigger any callback function.</p>
+ <p class="highlight_red">Please use zTree object to executing the method.</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>parentNode</b><span>JSON</span></h4>
+ <p>The parent node which need to clear its child nodes.</p>
+ <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p>
+ <h4 class="topLine"><b>Return </b><span>Array(JSON)</span></h4>
+ <p>Return the parent node's child nodes which have been removed. If has no child nodes, return null.</p>
+ </div>
+ <h3>Examples of function</h3>
+ <h4>1. Remove the first selected node's child nodes</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getSelectedNodes();
+if (nodes && nodes.length>0) {
+ treeObj.removeChildNodes(nodes[0]);
+}
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.removeNode.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.removeNode.html index 605322f3..ace7d1a9 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.removeNode.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.removeNode.html @@ -1,34 +1,34 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(treeNode, callbackFlag)</span><span class="path">zTreeObj.</span>removeNode</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>Remove a node</p> - <p class="highlight_red">Use removeNode() method of zTree v3.x can trigger 'beforeRemove / onRemove' callback function. for reduce redundant code.</p> - <p class="highlight_red">Please use zTree object to executing the method.</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which will be removed.</p> - <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p> - <h4 class="topLine"><b>callbackFlag</b><span>Boolean</span></h4> - <p>callbackFlag = true means: call this method, will trigger 'beforeRemove' & 'onRemove' callback.</p> - <p>callbackFlag = false means: call this method, will not trigger callback.</p> - <p class="highlight_red">If this parameter is omitted, it is same as 'callbackFlag = false'</p> - <h4 class="topLine"><b>Return </b><span>none</span></h4> - <p>no return value</p> - </div> - <h3>Examples of function</h3> - <h4>1. Remove all of the selected nodes.</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var nodes = treeObj.getSelectedNodes(); -for (var i=0, l=nodes.length; i < l; i++) { - treeObj.removeNode(nodes[i]); -} -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(treeNode, callbackFlag)</span><span class="path">zTreeObj.</span>removeNode</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>Remove a node</p>
+ <p class="highlight_red">Use removeNode() method of zTree v3.x can trigger 'beforeRemove / onRemove' callback function. for reduce redundant code.</p>
+ <p class="highlight_red">Please use zTree object to executing the method.</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which will be removed.</p>
+ <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p>
+ <h4 class="topLine"><b>callbackFlag</b><span>Boolean</span></h4>
+ <p>callbackFlag = true means: call this method, will trigger 'beforeRemove' & 'onRemove' callback.</p>
+ <p>callbackFlag = false means: call this method, will not trigger callback.</p>
+ <p class="highlight_red">If this parameter is omitted, it is same as 'callbackFlag = false'</p>
+ <h4 class="topLine"><b>Return </b><span>none</span></h4>
+ <p>no return value</p>
+ </div>
+ <h3>Examples of function</h3>
+ <h4>1. Remove all of the selected nodes.</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getSelectedNodes();
+for (var i=0, l=nodes.length; i < l; i++) {
+ treeObj.removeNode(nodes[i]);
+}
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.selectNode.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.selectNode.html index 237f1996..3b22e7f9 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.selectNode.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.selectNode.html @@ -1,34 +1,34 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(treeNode, addFlag)</span><span class="path">zTreeObj.</span>selectNode</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>Select a node</p> - <p class="highlight_red">zTree v3.x supports select multiple nodes.</p> - <p class="highlight_red">Please use zTree object to executing the method.</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which will be selected.</p> - <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p> - <h4 class="topLine"><b>addFlag</b><span>Boolean</span></h4> - <p>addFlag = true means: append to select node, don't affect the previously selected node, can select multiple nodes.</p> - <p>addFlag = false means: select single node, prior the selected node is deselected.</p> - <p class="highlight_red">If setting.view.selectedMulti = false, this para, this parameter is not valid, always select single node</p> - <h4 class="topLine"><b>Return </b><span>none</span></h4> - <p>no return value</p> - </div> - <h3>Exampleso of function</h3> - <h4>1. Select single node which be first selected.</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var nodes = treeObj.getNodes(); -if (nodes.length>0) { - treeObj.selectNode(nodes[0]); -} -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(treeNode, addFlag)</span><span class="path">zTreeObj.</span>selectNode</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>Select a node</p>
+ <p class="highlight_red">zTree v3.x supports select multiple nodes.</p>
+ <p class="highlight_red">Please use zTree object to executing the method.</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which will be selected.</p>
+ <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p>
+ <h4 class="topLine"><b>addFlag</b><span>Boolean</span></h4>
+ <p>addFlag = true means: append to select node, don't affect the previously selected node, can select multiple nodes.</p>
+ <p>addFlag = false means: select single node, prior the selected node is deselected.</p>
+ <p class="highlight_red">If setting.view.selectedMulti = false, this para, this parameter is not valid, always select single node</p>
+ <h4 class="topLine"><b>Return </b><span>none</span></h4>
+ <p>no return value</p>
+ </div>
+ <h3>Exampleso of function</h3>
+ <h4>1. Select single node which be first selected.</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getNodes();
+if (nodes.length>0) {
+ treeObj.selectNode(nodes[0]);
+}
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.setChkDisabled.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.setChkDisabled.html index 1d645e8f..9602c790 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.setChkDisabled.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.setChkDisabled.html @@ -1,44 +1,44 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(node, disabled, inheritParent, inheritChildren)</span><span class="path">zTreeObj.</span>setChkDisabled</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>Set the node's checkbox or radio is disabled or remove disabled. It is valid when <span class="highlight_red">[setting.check.enable = true]</span></p> - <p class="highlight_red">1. After the node's checkbox / radio is disabled, it can not be checked or unchecked, but it can affect the half-checked status of the parent node.</p> - <p class="highlight_red">2. Please do not directly modify the 'chkDisabled' attribute of the loaded node.</p> - <p class="highlight_red">3. Please use zTree object to executing the method.</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which need to be checked or unchecked.</p> - <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p> - <h4 class="topLine"><b>disabled</b><span>Boolean</span></h4> - <p>disabled = true means: the node's checkbox / radio is disabled.</p> - <p>disabled = false means: the node's checkbox / radio is removed disabled.</p> - <p class="highlight_red">If this parameter is omitted, it is same as disabled = false </p> - <p class="highlight_red">Don't affect the node which 'nochecked' attribute is true.</p> - <h4 class="topLine"><b>inheritParent</b><span>Boolean</span></h4> - <p>inheritParent = true means: all parent nodes's disabled status will be same as this node.</p> - <p>inheritParent = false means: all parent nodes's disabled status will be not affected.</p> - <p class="highlight_red">If this parameter is omitted, it is same as 'inheritParent = false'</p> - <h4 class="topLine"><b>inheritChildren</b><span>Boolean</span></h4> - <p>inheritChildren = true means: all child nodes's disabled status will be same as this node.</p> - <p>inheritChildren = false means: all child nodes's disabled status will be not affected.</p> - <p class="highlight_red">If this parameter is omitted, it is same as 'inheritChildren = false'</p> - <h4 class="topLine"><b>Return </b><span>none</span></h4> - <p>no return value</p> - </div> - <h3>Examples of function</h3> - <h4>1. Set the selected nodes's checkbox / radio to be disabled.</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var nodes = treeObj.getSelectedNodes(); -for (var i=0, l=nodes.length; i < l; i++) { - treeObj.setChkDisabled(nodes[i], true); -} -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(node, disabled, inheritParent, inheritChildren)</span><span class="path">zTreeObj.</span>setChkDisabled</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>Set the node's checkbox or radio is disabled or remove disabled. It is valid when <span class="highlight_red">[setting.check.enable = true]</span></p>
+ <p class="highlight_red">1. After the node's checkbox / radio is disabled, it can not be checked or unchecked, but it can affect the half-checked status of the parent node.</p>
+ <p class="highlight_red">2. Please do not directly modify the 'chkDisabled' attribute of the loaded node.</p>
+ <p class="highlight_red">3. Please use zTree object to executing the method.</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which need to be checked or unchecked.</p>
+ <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p>
+ <h4 class="topLine"><b>disabled</b><span>Boolean</span></h4>
+ <p>disabled = true means: the node's checkbox / radio is disabled.</p>
+ <p>disabled = false means: the node's checkbox / radio is removed disabled.</p>
+ <p class="highlight_red">If this parameter is omitted, it is same as disabled = false </p>
+ <p class="highlight_red">Don't affect the node which 'nochecked' attribute is true.</p>
+ <h4 class="topLine"><b>inheritParent</b><span>Boolean</span></h4>
+ <p>inheritParent = true means: all parent nodes's disabled status will be same as this node.</p>
+ <p>inheritParent = false means: all parent nodes's disabled status will be not affected.</p>
+ <p class="highlight_red">If this parameter is omitted, it is same as 'inheritParent = false'</p>
+ <h4 class="topLine"><b>inheritChildren</b><span>Boolean</span></h4>
+ <p>inheritChildren = true means: all child nodes's disabled status will be same as this node.</p>
+ <p>inheritChildren = false means: all child nodes's disabled status will be not affected.</p>
+ <p class="highlight_red">If this parameter is omitted, it is same as 'inheritChildren = false'</p>
+ <h4 class="topLine"><b>Return </b><span>none</span></h4>
+ <p>no return value</p>
+ </div>
+ <h3>Examples of function</h3>
+ <h4>1. Set the selected nodes's checkbox / radio to be disabled.</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getSelectedNodes();
+for (var i=0, l=nodes.length; i < l; i++) {
+ treeObj.setChkDisabled(nodes[i], true);
+}
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.setEditable.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.setEditable.html index a44b0ff6..85f7bc0e 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.setEditable.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.setEditable.html @@ -1,27 +1,27 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(editable)</span><span class="path">zTreeObj.</span>setEditable</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>Edit mode and normal mode switch.</p> - <p class="highlight_red">To use edit mode, please set the attributes in 'setting.edit'</p> - <p class="highlight_red">Please use zTree object to executing the method.</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>editable</b><span>Boolean</span></h4> - <p>true means: set zTree to edit mode.</p> - <p>false means: set zTree to normal mode.</p> - <h4><b>Return </b><span>none</span></h4> - <p>no return value</p> - </div> - <h3>Examples of function</h3> - <h4>1. set zTree to edit mode</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -treeObj.setEditable(true); -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(editable)</span><span class="path">zTreeObj.</span>setEditable</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>Edit mode and normal mode switch.</p>
+ <p class="highlight_red">To use edit mode, please set the attributes in 'setting.edit'</p>
+ <p class="highlight_red">Please use zTree object to executing the method.</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>editable</b><span>Boolean</span></h4>
+ <p>true means: set zTree to edit mode.</p>
+ <p>false means: set zTree to normal mode.</p>
+ <h4><b>Return </b><span>none</span></h4>
+ <p>no return value</p>
+ </div>
+ <h3>Examples of function</h3>
+ <h4>1. set zTree to edit mode</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+treeObj.setEditable(true);
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.setting.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.setting.html index d80c139a..270d7af8 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.setting.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.setting.html @@ -1,14 +1,14 @@ -<div class="apiDetail"> -<div> - <h2><span>JSON</span><span class="path">zTreeObj.</span>setting</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 configuration data of zTree, refer to "<span class="highlight_red">setting details</span>" </p> - <p class="highlight_red">zTree v3.x to cancel the original operation setting method, so users can modify.</p> - <p class="highlight_red">Note: Modify the parameters which affect zTree initialization will not work, please first understand the different attributes.</p> - </div> - </div> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>JSON</span><span class="path">zTreeObj.</span>setting</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 configuration data of zTree, refer to "<span class="highlight_red">setting details</span>" </p>
+ <p class="highlight_red">zTree v3.x to cancel the original operation setting method, so users can modify.</p>
+ <p class="highlight_red">Note: Modify the parameters which affect zTree initialization will not work, please first understand the different attributes.</p>
+ </div>
+ </div>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.showNode.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.showNode.html index 53b5cbda..8dd98916 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.showNode.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.showNode.html @@ -1,31 +1,31 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(treeNode)</span><span class="path">zTreeObj.</span>showNode</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exhide</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>To hide any node which be hidden.</p> - <p class="highlight_red">1. This feature can't support the 'exedit' feature, so please don't use this feature in edit mode.</p> - <p class="highlight_red">2. If you hide or show the nodes, it will effect the 'isFirstNode' and 'isLastNode' attribute.</p> - <p class="highlight_red">3. Please use zTree object to executing the method.</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeNodes</b><span>Array(JSON)</span></h4> - <p>JSON data object of the node which will be shown</p> - <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p> - <h4 class="topLine"><b>Retrun </b><span>none</span></h4> - <p>no return value</p> - </div> - <h3>Examples of function</h3> - <h4>1. show someone node which be hidden.</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var node = treeObj.getNodeByParam("isHidden", true); -if (node) { - treeObj.showNode(node); -} -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(treeNode)</span><span class="path">zTreeObj.</span>showNode</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exhide</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>To hide any node which be hidden.</p>
+ <p class="highlight_red">1. This feature can't support the 'exedit' feature, so please don't use this feature in edit mode.</p>
+ <p class="highlight_red">2. If you hide or show the nodes, it will effect the 'isFirstNode' and 'isLastNode' attribute.</p>
+ <p class="highlight_red">3. Please use zTree object to executing the method.</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeNodes</b><span>Array(JSON)</span></h4>
+ <p>JSON data object of the node which will be shown</p>
+ <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p>
+ <h4 class="topLine"><b>Retrun </b><span>none</span></h4>
+ <p>no return value</p>
+ </div>
+ <h3>Examples of function</h3>
+ <h4>1. show someone node which be hidden.</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var node = treeObj.getNodeByParam("isHidden", true);
+if (node) {
+ treeObj.showNode(node);
+}
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.showNodes.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.showNodes.html index c0c926c3..95c6dafe 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.showNodes.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.showNodes.html @@ -1,29 +1,29 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(treeNodes)</span><span class="path">zTreeObj.</span>showNodes</h2> - <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exhide</span> js ]</span></h3> - <div class="desc"> - <p></p> - <div class="longdesc"> - <p>To show a group of nodes which be hidden.</p> - <p class="highlight_red">1. This feature can't support the 'exedit' feature, so please don't use this feature in edit mode.</p> - <p class="highlight_red">2. If you hide or show the nodes, it will effect the 'isFirstNode' and 'isLastNode' attribute.</p> - <p class="highlight_red">3. Please use zTree object to executing the method.</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeNodes</b><span>Array(JSON)</span></h4> - <p>the array of the nodes which will be shown</p> - <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p> - <h4 class="topLine"><b>Retrun </b><span>none</span></h4> - <p>no return value</p> - </div> - <h3>Examples of function</h3> - <h4>1. show all of the nodes which be hidden.</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var nodes = treeObj.getNodesByParam("isHidden", true); -treeObj.showNodes(nodes); -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(treeNodes)</span><span class="path">zTreeObj.</span>showNodes</h2>
+ <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exhide</span> js ]</span></h3>
+ <div class="desc">
+ <p></p>
+ <div class="longdesc">
+ <p>To show a group of nodes which be hidden.</p>
+ <p class="highlight_red">1. This feature can't support the 'exedit' feature, so please don't use this feature in edit mode.</p>
+ <p class="highlight_red">2. If you hide or show the nodes, it will effect the 'isFirstNode' and 'isLastNode' attribute.</p>
+ <p class="highlight_red">3. Please use zTree object to executing the method.</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeNodes</b><span>Array(JSON)</span></h4>
+ <p>the array of the nodes which will be shown</p>
+ <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p>
+ <h4 class="topLine"><b>Retrun </b><span>none</span></h4>
+ <p>no return value</p>
+ </div>
+ <h3>Examples of function</h3>
+ <h4>1. show all of the nodes which be hidden.</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getNodesByParam("isHidden", true);
+treeObj.showNodes(nodes);
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.transformToArray.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.transformToArray.html index 4b2296d5..31dd2f95 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.transformToArray.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.transformToArray.html @@ -1,27 +1,27 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(treeNodes)</span><span class="path">zTreeObj.</span>transformToArray</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></p> - <p>Transform the zTree nodes data into simple array. (To avoid the user to write code to traverse all nodes)</p> - <p class="highlight_red">Please use zTree object to executing the method.</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeNodes</b><span>Array(JSON) / JSON</span></h4> - <p>JSON data object of the node which need to be transformed.</p> - <p>or JSON data objects collection of the nodes which need to be transformed.</p> - <h4 class="topLine"><b>Return </b><span>Array(JSON)</span></h4> - <p>The JSON data objects array of the nodes which be transformed.</p> - </div> - <h3>Examples of function</h3> - <h4>1. Transform the zTree nodes data into simple array.</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var nodes = treeObj.transformToArray(treeObj.getNodes()); -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(treeNodes)</span><span class="path">zTreeObj.</span>transformToArray</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></p>
+ <p>Transform the zTree nodes data into simple array. (To avoid the user to write code to traverse all nodes)</p>
+ <p class="highlight_red">Please use zTree object to executing the method.</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeNodes</b><span>Array(JSON) / JSON</span></h4>
+ <p>JSON data object of the node which need to be transformed.</p>
+ <p>or JSON data objects collection of the nodes which need to be transformed.</p>
+ <h4 class="topLine"><b>Return </b><span>Array(JSON)</span></h4>
+ <p>The JSON data objects array of the nodes which be transformed.</p>
+ </div>
+ <h3>Examples of function</h3>
+ <h4>1. Transform the zTree nodes data into simple array.</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.transformToArray(treeObj.getNodes());
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.transformTozTreeNodes.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.transformTozTreeNodes.html index 51d4a629..91794ab1 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.transformTozTreeNodes.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.transformTozTreeNodes.html @@ -1,44 +1,44 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(simpleNodes)</span><span class="path">zTreeObj.</span>transformTozTreeNodes</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>Transform the simple array into zTree nodes data.</p> - <p class="highlight_red">If you use this method, you must set 'setting.data.simpleData.idKey' and 'setting.data.simpleData.pIdKey' attribute, and let the data are consistent with parent-child relationship.</p> - <p class="highlight_red">Please use zTree object to executing the method.</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>simpleNodes</b><span>Array(JSON) / JSON</span></h4> - <p>JSON data object of the node which need to be transformed.</p> - <p>or JSON data objects array of the nodes which need to be transformed.</p> - <h4 class="topLine"><b>Return </b><span>Array(JSON)</span></h4> - <p>Standard data which zTree use. The child nodes are stored in the parent node's 'children' attribute.</p> - <p class="highlight_red">If simpleNodes is a single JSON, so the return array's length is 1.</p> - </div> - <h3>Examples of function</h3> - <h4>1. Transform the simple array data into zTree nodes format.</h4> - <pre xmlns=""><code>var setting = { - data: { - simpleData: { - enable: true, - idKey: "id", - pIdKey: "pId", - rootPId: 0, - } - } -}; -var simpleNodes = [ - {"id":1, "pId":0, "name":"test1"}, - {"id":11, "pId":1, "name":"test11"}, - {"id":12, "pId":1, "name":"test12"}, - {"id":111, "pId":11, "name":"test111"} -]; -var treeObj = $.fn.zTree.getZTreeObj("tree"); -var nodes = treeObj.transformTozTreeNodes(simpleNodes); -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(simpleNodes)</span><span class="path">zTreeObj.</span>transformTozTreeNodes</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>Transform the simple array into zTree nodes data.</p>
+ <p class="highlight_red">If you use this method, you must set 'setting.data.simpleData.idKey' and 'setting.data.simpleData.pIdKey' attribute, and let the data are consistent with parent-child relationship.</p>
+ <p class="highlight_red">Please use zTree object to executing the method.</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>simpleNodes</b><span>Array(JSON) / JSON</span></h4>
+ <p>JSON data object of the node which need to be transformed.</p>
+ <p>or JSON data objects array of the nodes which need to be transformed.</p>
+ <h4 class="topLine"><b>Return </b><span>Array(JSON)</span></h4>
+ <p>Standard data which zTree use. The child nodes are stored in the parent node's 'children' attribute.</p>
+ <p class="highlight_red">If simpleNodes is a single JSON, so the return array's length is 1.</p>
+ </div>
+ <h3>Examples of function</h3>
+ <h4>1. Transform the simple array data into zTree nodes format.</h4>
+ <pre xmlns=""><code>var setting = {
+ data: {
+ simpleData: {
+ enable: true,
+ idKey: "id",
+ pIdKey: "pId",
+ rootPId: 0,
+ }
+ }
+};
+var simpleNodes = [
+ {"id":1, "pId":0, "name":"test1"},
+ {"id":11, "pId":1, "name":"test11"},
+ {"id":12, "pId":1, "name":"test12"},
+ {"id":111, "pId":11, "name":"test111"}
+];
+var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.transformTozTreeNodes(simpleNodes);
+</code></pre>
+</div>
</div>
\ No newline at end of file diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.updateNode.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.updateNode.html index 7639ff41..e19d6007 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.updateNode.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/zTreeObj.updateNode.html @@ -1,37 +1,37 @@ -<div class="apiDetail"> -<div> - <h2><span>Function(treeNode, checkTypeFlag)</span><span class="path">zTreeObj.</span>updateNode</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>Update node data. Primarily used to update the node's DOM.</p> - <p class="highlight_red">1. Can update the attributes for display (e.g. 'name', 'target', 'url', 'icon', 'iconSkin', 'checked', 'nocheck'), do not update the other attributes. For example: If you need to expand the node, please use expandNode() method, do not modify the 'open' attribute.</p> - <p class="highlight_red">2. Use updateNode() method of zTree can't trigger 'beforeCheck' or 'onCheck' callback function.</p> - <p class="highlight_red">Please use zTree object to executing the method.</p> - </div> - </div> - <h3>Function Parameter Descriptions</h3> - <div class="desc"> - <h4><b>treeNode</b><span>JSON</span></h4> - <p>JSON data object of the node which need to update.</p> - <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p> - <h4 class="topLine"><b>checkTypeFlag</b><span>Boolean</span></h4> - <p>checkTypeFlag = true means: According to 'setting.check.chkboxType' attribute automatically check or uncheck the parent and child nodes.</p> - <p>checkTypeFlag = false means: only check or uncheck this node, don't affect its parent and child nodes.</p> - <p class="highlight_red">This parameter is valid when 'setting.check.enable = true' and 'setting.check.chkStyle = "checkbox"'</p> - <p class="highlight_red">Don't affect the parent and child nodes which 'nochecked' attribute is true.</p> - <h4 class="topLine"><b>Return </b><span>none</span></h4> - <p>no return value</p> - </div> - <h3>Examples of function</h3> - <h4>1. Modify the first selected node's name, and update it.</h4> - <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); -var nodes = treeObj.getNodes(); -if (nodes.length>0) { - nodes[0].name = "test"; - treeObj.updateNode(nodes[0]); -} -</code></pre> -</div> +<div class="apiDetail">
+<div>
+ <h2><span>Function(treeNode, checkTypeFlag)</span><span class="path">zTreeObj.</span>updateNode</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>Update node data. Primarily used to update the node's DOM.</p>
+ <p class="highlight_red">1. Can update the attributes for display (e.g. 'name', 'target', 'url', 'icon', 'iconSkin', 'checked', 'nocheck'), do not update the other attributes. For example: If you need to expand the node, please use expandNode() method, do not modify the 'open' attribute.</p>
+ <p class="highlight_red">2. Use updateNode() method of zTree can't trigger 'beforeCheck' or 'onCheck' callback function.</p>
+ <p class="highlight_red">Please use zTree object to executing the method.</p>
+ </div>
+ </div>
+ <h3>Function Parameter Descriptions</h3>
+ <div class="desc">
+ <h4><b>treeNode</b><span>JSON</span></h4>
+ <p>JSON data object of the node which need to update.</p>
+ <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p>
+ <h4 class="topLine"><b>checkTypeFlag</b><span>Boolean</span></h4>
+ <p>checkTypeFlag = true means: According to 'setting.check.chkboxType' attribute automatically check or uncheck the parent and child nodes.</p>
+ <p>checkTypeFlag = false means: only check or uncheck this node, don't affect its parent and child nodes.</p>
+ <p class="highlight_red">This parameter is valid when 'setting.check.enable = true' and 'setting.check.chkStyle = "checkbox"'</p>
+ <p class="highlight_red">Don't affect the parent and child nodes which 'nochecked' attribute is true.</p>
+ <h4 class="topLine"><b>Return </b><span>none</span></h4>
+ <p>no return value</p>
+ </div>
+ <h3>Examples of function</h3>
+ <h4>1. Modify the first selected node's name, and update it.</h4>
+ <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getNodes();
+if (nodes.length>0) {
+ nodes[0].name = "test";
+ treeObj.updateNode(nodes[0]);
+}
+</code></pre>
+</div>
</div>
\ No newline at end of file |