treeNode.checkedOld.html 1.6 KB

1234567891011121314151617181920212223242526272829
  1. <div class="apiDetail">
  2. <div>
  3. <h2><span>Boolean</span><span class="path">treeNode.</span>checkedOld</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>The checked status about node's checkbox or radio when zTree was initialized. It is valid when <span
  10. class="highlight_red">[setting.check.enable = true & treeNode.nocheck = false]</span></p>
  11. <p class="highlight_red">1. Do not initialize it, it will be initialized when the node is
  12. initialized.</p>
  13. <p class="highlight_red">2. If you need to achieve special features, you can use the
  14. zTreeObj.getChangeCheckedNodes method and modify the value of 'checkedOld' attribute.</p>
  15. <p>Default: the value of 'checked' attribute when zTree is initialized</p>
  16. </div>
  17. </div>
  18. <h3>Boolean Format</h3>
  19. <div class="desc">
  20. <p>true means: the checkbox or radio is checked when zTree is initialized.</p>
  21. <p>false means: the checkbox or radio is not checked when zTree is initialized.</p>
  22. </div>
  23. <h3>Examples of treeNode</h3>
  24. <h4>1. Get the original checked status of the first root node</h4>
  25. <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
  26. var checkedOld = treeObj.getNodes()[0].checkedOld;
  27. </code></pre>
  28. </div>
  29. </div>