treeNode.check_Child_State.html 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <div class="apiDetail">
  2. <div>
  3. <h2><span>Number</span><span class="path">treeNode.</span>check_Child_State</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>Used to record the node's half-checked state about its all child nodes's checkbox or radio. It is
  10. valid when <span class="highlight_red">[setting.check.enable = true]</span></p>
  11. <p class="highlight_red">zTree v3.x provides treeNode.getCheckStatus () method to get an accurate the
  12. half-checked status.</p>
  13. <p class="highlight_red">Do not initialize or modify it, it is an internal argument.</p>
  14. <p>Default: true</p>
  15. </div>
  16. </div>
  17. <h3>Number Format</h3>
  18. <div class="desc">
  19. <p>Rules:</p>
  20. <table width="100%" border="0" cellspacing="1" cellpadding="0">
  21. <thead>
  22. <tr>
  23. <td colspan="4">setting.check.checkType = "checkbox"</td>
  24. </tr>
  25. <tr>
  26. <td>treeNode.check_Child_State</td>
  27. <td>Checked Status Description</td>
  28. </tr>
  29. </thead>
  30. <tbody>
  31. <tr>
  32. <td>-1</td>
  33. <td>Has no child nodes or all child nodes's 'nocheck' attribute is true.</td>
  34. </tr>
  35. <tr>
  36. <td>0</td>
  37. <td>All of the child nodes has not been checked.</td>
  38. </tr>
  39. <tr>
  40. <td>1</td>
  41. <td>Some of the child nodes has been checked.</td>
  42. </tr>
  43. <tr>
  44. <td>2</td>
  45. <td>All of the child nodes has been checked.</td>
  46. </tr>
  47. </tbody>
  48. </table>
  49. <br/>
  50. <table width="100%" border="0" cellspacing="1" cellpadding="0">
  51. <thead>
  52. <tr>
  53. <td colspan="4">setting.check.checkType = "radio"</td>
  54. </tr>
  55. <tr>
  56. <td>treeNode.check_Child_State</td>
  57. <td>Checked Status Description</td>
  58. </tr>
  59. </thead>
  60. <tbody>
  61. <tr>
  62. <td>-1</td>
  63. <td>Has no child nodes or all child nodes's 'nocheck' attribute is true.</td>
  64. </tr>
  65. <tr>
  66. <td>0</td>
  67. <td>All of the child nodes has not been checked.</td>
  68. </tr>
  69. <tr>
  70. <td>2</td>
  71. <td>Some of the child nodes has been checked.</td>
  72. </tr>
  73. </tbody>
  74. </table>
  75. </div>
  76. </div>
  77. </div>