treeNode.halfCheck.html 1.8 KB

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