customcheckbox.html 886 B

1234567891011121314151617181920212223242526272829
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Custom CheckBox Tree - jQuery EasyUI Demo</title>
  6. <link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
  7. <link rel="stylesheet" type="text/css" href="../../themes/icon.css">
  8. <link rel="stylesheet" type="text/css" href="../demo.css">
  9. <script type="text/javascript" src="../../jquery.min.js"></script>
  10. <script type="text/javascript" src="../../jquery.easyui.min.js"></script>
  11. </head>
  12. <body>
  13. <h2>Custom CheckBox Tree</h2>
  14. <p>Tree nodes with customized check boxes.</p>
  15. <div style="margin:20px 0;"></div>
  16. <div class="easyui-panel" style="padding:5px">
  17. <ul class="easyui-tree" data-options="
  18. url:'tree_data1.json',
  19. method:'get',
  20. animate:true,
  21. checkbox:function(node){
  22. if (node.id == 11 || node.id == 122){
  23. return true;
  24. }
  25. }
  26. "></ul>
  27. </div>
  28. </body>
  29. </html>