CLIENT GUI Framework
[vnfsdk/refrepo.git] / openo-portal / portal-common / src / main / webapp / common / thirdparty / zTree / api / en / setting.async.autoParam.html
1 <div class="apiDetail">\r
2 <div>\r
3         <h2><span>Array(String)</span><span class="path">setting.async.</span>autoParam</h2>\r
4         <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>\r
5         <div class="desc">\r
6                 <p></p>\r
7                 <div class="longdesc">\r
8                         <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>\r
9                         <p>Default:[ ]</p>\r
10                 </div>\r
11         </div>\r
12         <h3>Array(String) Format</h3>\r
13         <div class="desc">\r
14         <p>1. Just save the attribute name of node to the array. For example: ["id", "name"]</p>\r
15         <p>2. You can change the parameter name. For example: server only accepts "zId" -- ["id=zId"]</p>\r
16         </div>\r
17         <h3>Examples of setting</h3>\r
18         <h4>1. set auto commit 'id' attribute</h4>\r
19         <pre xmlns=""><code>var setting = {\r
20         async: {\r
21                 enable: true,\r
22                 url: "http://host/getNode.php",\r
23                 autoParam: ["id"]\r
24         }\r
25 };\r
26 If have the parent node: {id:1, name:"test"}, When asynchronously load this parent node's child nodes, will be submitted parameters: id=1\r
27 ......</code></pre>\r
28         <h4>2. set auto commit 'id' attribute, but parameter name is 'zId'</h4>\r
29         <pre xmlns=""><code>var setting = {\r
30         async: {\r
31                 enable: true,\r
32                 url: "http://host/getNode.php",\r
33                 autoParam: ["id=zId"]\r
34         }\r
35 };\r
36 If have the parent node: {id:1, name:"test"}, When asynchronously load this parent node's child nodes, will be submitted parameters: zId=1\r
37 ......</code></pre>\r
38 </div>\r
39 </div>