1 <div class="apiDetail">
\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
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
12 <h3>Boolean Format</h3>
\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
19 <h3>Examples of setting</h3>
\r
20 <h4>1. Turn on asynchronous loading mode</h4>
\r
21 <pre xmlns=""><code>var setting = {
\r
24 url: "http://host/getNode.php",
\r
25 autoParam: ["id", "name"]
\r