No Description

zTreeObj.checkAllNodes.html 1.2KB

1234567891011121314151617181920212223242526272829
  1. <div class="apiDetail">
  2. <div>
  3. <h2><span>Function(checked)</span><span class="path">zTreeObj.</span>checkAllNodes</h2>
  4. <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3>
  5. <div class="desc">
  6. <p></p>
  7. <div class="longdesc">
  8. <p>勾选 或 取消勾选 全部节点。<span class="highlight_red">[setting.check.enable = true 且 setting.check.chkStyle = "checkbox" 时有效]</span></p>
  9. <p class="highlight_red">此方法不会触发 beforeCheck / onCheck 事件回调函数。</p>
  10. <p class="highlight_red">请通过 zTree 对象执行此方法。</p>
  11. </div>
  12. </div>
  13. <h3>Function 参数说明</h3>
  14. <div class="desc">
  15. <h4><b>checked</b><span>Boolean</span></h4>
  16. <p>checked = true 表示勾选全部节点</p>
  17. <p>checked = false 表示全部节点取消勾选</p>
  18. <p class="highlight_red">不会影响 treeNode.nochecked = true 的节点。</p>
  19. <p class="highlight_red">不会影响未加载的节点。</p>
  20. <h4 class="topLine"><b>返回值</b><span>无</span></h4>
  21. <p>目前无任何返回值</p>
  22. </div>
  23. <h3>function 举例</h3>
  24. <h4>1. 勾选全部节点</h4>
  25. <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
  26. treeObj.checkAllNodes(true);
  27. </code></pre>
  28. </div>
  29. </div>