setting.check.chkStyle.html 4.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <div class="apiDetail">
  2. <div>
  3. <h2><span>String</span><span class="path">setting.check.</span>chkStyle</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>Use the checkbox or radio. It is valid when <span
  10. class="highlight_red">[setting.check.enable = true]</span></p>
  11. <p>Default: "checkbox"</p>
  12. </div>
  13. </div>
  14. <h3>String Format</h3>
  15. <div class="desc">
  16. <p>When chkStyle = "checkbox", zTree show checkbox, and '<span class="highlight_red">setting.check.chkboxType</span>'
  17. attribute is valid.
  18. <br/>When chkStyle = "radio", zTree show radio, and '<span
  19. class="highlight_red">setting.check.radioType</span>' attribute is valid.</p>
  20. <p class="highlight_red">Please note that letter case, do not change.</p>
  21. </div>
  22. <h3>checkbox States Descriptions</h3>
  23. <div class="desc">
  24. <p></p>
  25. <div class="longdesc">
  26. <p>
  27. <button type="button" class="chk checkbox_false_full"></button>
  28. not checked; <span class="highlight_red">If node is parent, so its child nodes have been not checked.</span>
  29. when mouse over:
  30. <button type="button" class="chk checkbox_false_full_focus"></button>
  31. </p>
  32. <p>
  33. <button type="button" class="chk checkbox_false_part"></button>
  34. not checked; (only parent node) <span class="highlight_red">some of its child nodes have been checked.</span>
  35. when mouse over:
  36. <button type="button" class="chk checkbox_false_part_focus"></button>
  37. </p>
  38. <p>
  39. <button type="button" class="chk checkbox_true_full"></button>
  40. be checked; <span
  41. class="highlight_red">If node is parent, so its all child nodes have been checked.</span> when
  42. mouse over:
  43. <button type="button" class="chk checkbox_true_full_focus"></button>
  44. </p>
  45. <p>
  46. <button type="button" class="chk checkbox_true_part"></button>
  47. be checked; (only parent node) <span class="highlight_red">some of its child nodes or all have been not checked.</span>
  48. when mouse over:
  49. <button type="button" class="chk checkbox_true_part_focus"></button>
  50. </p>
  51. </div>
  52. </div>
  53. <h3>radio States Descriptions</h3>
  54. <div class="desc">
  55. <p></p>
  56. <div class="longdesc">
  57. <p>
  58. <button type="button" class="chk radio_false_full"></button>
  59. not checked; <span
  60. class="highlight_red">If node is parent, so its child have been not checked.</span> when mouse
  61. over:
  62. <button type="button" class="chk radio_false_full_focus"></button>
  63. </p>
  64. <p>
  65. <button type="button" class="chk radio_false_part"></button>
  66. not checked; (only parent node) <span
  67. class="highlight_red">some of its child have been checked.</span> when mouse over:
  68. <button type="button" class="chk radio_false_part_focus"></button>
  69. </p>
  70. <p>
  71. <button type="button" class="chk radio_true_full"></button>
  72. be checked; <span
  73. class="highlight_red">If node is parent, so its child have been not checked.</span> when mouse
  74. over:
  75. <button type="button" class="chk radio_true_full_focus"></button>
  76. </p>
  77. <p>
  78. <button type="button" class="chk radio_true_part"></button>
  79. be checked; (only parent node) <span
  80. class="highlight_red">some of its child have been checked.</span> when mouse over:
  81. <button type="button" class="chk radio_true_part_focus"></button>
  82. </p>
  83. </div>
  84. </div>
  85. <h3>Examples of setting</h3>
  86. <h4>1. use radio</h4>
  87. <pre xmlns=""><code>var setting = {
  88. check: {
  89. enable: true,
  90. chkStyle: "radio"
  91. }
  92. };
  93. ......</code></pre>
  94. </div>
  95. </div>