CLIENT GUI Framework
[vnfsdk/refrepo.git] / openo-portal / portal-common / src / main / webapp / common / thirdparty / zTree / api / en / setting.async.enable.html
1 <div class="apiDetail">\r
2 <div>\r
3         <h2><span>Boolean</span><span class="path">setting.async.</span>enable</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>Set zTree asynchronous loading mode is turned on or off.</p>\r
9                         <p>Default: false</p>\r
10                 </div>\r
11         </div>\r
12         <h3>Boolean Format</h3>\r
13         <div class="desc">\r
14         <p> true - turn on asynchronous loading mode</p>\r
15         <p> false - turn off asynchronous loading mode</p>\r
16         <p class="highlight_red">If set it is true, you must set attributes in setting.async</p>\r
17         <p class="highlight_red">If you don't pass 'treeNodes' parameter when initialize zTree, the root nodes will get by ajax.</p>\r
18         </div>\r
19         <h3>Examples of setting</h3>\r
20         <h4>1. Turn on asynchronous loading mode</h4>\r
21         <pre xmlns=""><code>var setting = {\r
22         async: {\r
23                 enable: true,\r
24                 url: "http://host/getNode.php",\r
25                 autoParam: ["id", "name"]\r
26         }\r
27 };\r
28 ......</code></pre>\r
29 </div>\r
30 </div>