zTreeObj.checkAllNodes.html 1.3 KB

1234567891011121314151617181920212223242526272829
  1. <div class="apiDetail">
  2. <div>
  3. <h2><span>Function(checked)</span><span class="path">zTreeObj.</span>checkAllNodes</h2>
  4. <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
  5. <div class="desc">
  6. <p></p>
  7. <div class="longdesc">
  8. <p>Check or unCheck all nodes which have been initialized. It is valid when <span class="highlight_red">[setting.check.enable = true & setting.check.chkStyle = "checkbox"]</span></p>
  9. <p class="highlight_red">This method does not trigger 'beforeCheck' or 'onCheck' callback function.</p>
  10. <p class="highlight_red">Please use zTree object to executing the method.</p>
  11. </div>
  12. </div>
  13. <h3>Function Parameter Descriptions</h3>
  14. <div class="desc">
  15. <h4><b>checked</b><span>Boolean</span></h4>
  16. <p>checked = true means: check all nodes.</p>
  17. <p>checked = false means: uncheck all nodes.</p>
  18. <p class="highlight_red">Don't affect the node which 'nochecked' attribute is true.</p>
  19. <p class="highlight_red">Don't affect the node is not loaded.</p>
  20. <h4 class="topLine"><b>Return </b><span>none</span></h4>
  21. <p>no return value</p>
  22. </div>
  23. <h3>Examples of function</h3>
  24. <h4>1. check all nodes</h4>
  25. <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
  26. treeObj.checkAllNodes(true);
  27. </code></pre>
  28. </div>
  29. </div>