setting.async.enable.html 1003 B

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