setting.async.enable.html 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. <div class="apiDetail">
  2. <div>
  3. <h2><span>Boolean</span><span class="path">setting.async.</span>enable</h2>
  4. <h3>Overview<span class="h3_info">[ depends on <span
  5. class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
  6. <div class="desc">
  7. <p></p>
  8. <div class="longdesc">
  9. <p>Set zTree asynchronous loading mode on/off.</p>
  10. <p>Default: false</p>
  11. </div>
  12. </div>
  13. <h3>Boolean Format</h3>
  14. <div class="desc">
  15. <p> true - turn on asynchronous loading mode</p>
  16. <p> false - turn off asynchronous loading mode</p>
  17. <p class="highlight_red">If set it is true, you must set other attributes in setting.async</p>
  18. <p class="highlight_red">If you don't pass the 'treeNodes' parameter when you initialize zTree, the root
  19. nodes will be retrieved using ajax.</p>
  20. </div>
  21. <h3>Examples of setting</h3>
  22. <h4>1. Turn on asynchronous loading mode</h4>
  23. <pre xmlns=""><code>var setting = {
  24. async: {
  25. enable: true,
  26. url: "http://host/getNode.php",
  27. autoParam: ["id", "name"]
  28. }
  29. };
  30. ......</code></pre>
  31. </div>
  32. </div>