setting.check.autoCheckTrigger.html 1.7 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <div class="apiDetail">
  2. <div>
  3. <h2><span>Boolean</span><span class="path">setting.check.</span>autoCheckTrigger</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>When node is automatically checked or unchecked, this parameter used to set to trigger 'beforeCheck /
  10. onCheck' callback. It is valid when <span class="highlight_red">[setting.check.enable = true & setting.check.chkStyle = "checkbox"]</span>
  11. </p>
  12. <p class="highlight_red">1. If you set 'setting.check.chkboxType' to { "Y": "", "N": "" }, will not
  13. automatically checked or unchecked.</p>
  14. <p class="highlight_red">2. If you turn on the trigger and there are many more nodes, will affect the
  15. performance, because the check or uncheck node can cause many nodes to be automatically checked or
  16. unchecked, it will trigger a lot of callbacks, according to the need to decide whether to use this
  17. feature.</p>
  18. <p>Default: false</p>
  19. </div>
  20. </div>
  21. <h3>Boolean Format</h3>
  22. <div class="desc">
  23. <p> true means: trigger callback</p>
  24. <p> false means: don't trigger callback</p>
  25. </div>
  26. <h3>Examples of setting</h3>
  27. <h4>1. When node is automatically checked or unchecked, zTree trigger 'beforeCheck / onCheck' callback.</h4>
  28. <pre xmlns=""><code>var setting = {
  29. check: {
  30. enable: true,
  31. autoCheckTrigger: true
  32. }
  33. };
  34. ......</code></pre>
  35. </div>
  36. </div>