treeNode.halfCheck.html 1.5 KB

1234567891011121314151617181920212223242526272829
  1. <div class="apiDetail">
  2. <div>
  3. <h2><span>Boolean</span><span class="path">treeNode.</span>halfCheck</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>Force node checkBox / radio to the half-checked status. It is valid when <span class="highlight_red">[setting.check.enable = true & treeNode.nocheck = false]</span></p>
  9. <p class="highlight_red">1. If you force to the half-checked status, zTree will not automatically calculated the half-checked status about this node.</p>
  10. <p class="highlight_red">2. Until you set treeNode.halfCheck to false or null, zTree will automatically calculated the half-checked status about this node.</p>
  11. <p class="highlight_red">3. zTree support identification string 'true' & 'false'.</p>
  12. <p>Defaul: false</p>
  13. </div>
  14. </div>
  15. <h3>Boolean Format</h3>
  16. <div class="desc">
  17. <p>true means: the checkbox or radio is half-checked when zTree is initialized.</p>
  18. <p>false means: the half-checked status will be automatically calculated</p>
  19. </div>
  20. <h3>Examples of treeNode</h3>
  21. <h4>1. set the half-checked status when zTree is initialized</h4>
  22. <pre xmlns=""><code>var nodes = [
  23. { "id":1, "name":"test1", isParent:true, checked:true, halfCheck:true },
  24. { "id":2, "name":"test2", isParent:true, checked:false, halfCheck:true },
  25. { "id":3, "name":"test3", isParent:true, checked:true },
  26. { "id":4, "name":"test4", isParent:true, checked:false }
  27. ]</code></pre>
  28. </div>
  29. </div>