setting.check.chkStyle.html 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <div class="apiDetail">
  2. <div>
  3. <h2><span>String</span><span class="path">setting.check.</span>chkStyle</h2>
  4. <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3>
  5. <div class="desc">
  6. <p></p>
  7. <div class="longdesc">
  8. <p>勾选框类型(checkbox 或 radio)<span class="highlight_red">[setting.check.enable = true 时生效]</span></p>
  9. <p>默认值:"checkbox"</p>
  10. </div>
  11. </div>
  12. <h3>String 格式说明</h3>
  13. <div class="desc">
  14. <p>chkStyle = "checkbox" 时,显示 checkbox 选择框,<span class="highlight_red">setting.check.chkboxType</span> 属性有效。
  15. <br/>chkStyle = "radio" 时,显示 radio 选择框, <span class="highlight_red">setting.check.radioType</span> 属性有效。
  16. </p>
  17. <p class="highlight_red">请注意大小写,不要改变</p>
  18. </div>
  19. <h3>checkbox 状态说明</h3>
  20. <div class="desc">
  21. <p></p>
  22. <div class="longdesc">
  23. <p>
  24. <button type="button" class="chk checkbox_false_full"></button>
  25. 未勾选;<span class="highlight_red">如果是父节点,则无子节点被勾选</span>。鼠标移到该节点上显示为:
  26. <button type="button" class="chk checkbox_false_full_focus"></button>
  27. </p>
  28. <p>
  29. <button type="button" class="chk checkbox_false_part"></button>
  30. 未勾选;(只有父节点存在此状态)<span class="highlight_red">存在被勾选的子节点</span>。鼠标移到该节点上显示为:
  31. <button type="button" class="chk checkbox_false_part_focus"></button>
  32. </p>
  33. <p>
  34. <button type="button" class="chk checkbox_true_full"></button>
  35. 被勾选;<span class="highlight_red">如果是父节点,则全部子节点都被勾选</span>。鼠标移到该节点上显示为:
  36. <button type="button" class="chk checkbox_true_full_focus"></button>
  37. </p>
  38. <p>
  39. <button type="button" class="chk checkbox_true_part"></button>
  40. 被勾选;(只有父节点存在此状态)<span class="highlight_red">且部分或无子节点被勾选</span>。鼠标移到该节点上显示为:
  41. <button type="button" class="chk checkbox_true_part_focus"></button>
  42. </p>
  43. </div>
  44. </div>
  45. <h3>radio 状态说明</h3>
  46. <div class="desc">
  47. <p></p>
  48. <div class="longdesc">
  49. <p>
  50. <button type="button" class="chk radio_false_full"></button>
  51. 未勾选;<span class="highlight_red">如果是父节点,则没有子节点被勾选</span>。鼠标移到该节点上显示为:
  52. <button type="button" class="chk radio_false_full_focus"></button>
  53. </p>
  54. <p>
  55. <button type="button" class="chk radio_false_part"></button>
  56. 未勾选;(只有父节点存在此状态)<span class="highlight_red">且存在被勾选的子节点</span>。鼠标移到该节点上显示为:
  57. <button type="button" class="chk radio_false_part_focus"></button>
  58. </p>
  59. <p>
  60. <button type="button" class="chk radio_true_full"></button>
  61. 被勾选;<span class="highlight_red">如果是父节点,则没有子节点被勾选</span>。鼠标移到该节点上显示为:
  62. <button type="button" class="chk radio_true_full_focus"></button>
  63. </p>
  64. <p>
  65. <button type="button" class="chk radio_true_part"></button>
  66. 被勾选;(只有父节点存在此状态)<span class="highlight_red">且存在被勾选的子节点</span>。鼠标移到该节点上显示为:
  67. <button type="button" class="chk radio_true_part_focus"></button>
  68. </p>
  69. </div>
  70. </div>
  71. <h3>setting 举例</h3>
  72. <h4>1. 设置选择框为 radio</h4>
  73. <pre xmlns=""><code>var setting = {
  74. check: {
  75. enable: true,
  76. chkStyle: "radio"
  77. }
  78. };
  79. ......</code></pre>
  80. </div>
  81. </div>