comboBoxTree.htm 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title></title>
  5. <link href="../../lib/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  6. <style type="text/css">
  7. </style>
  8. <script src="../../lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  9. <script src="../../lib/ligerUI/js/core/base.js" type="text/javascript"></script>
  10. <script src="../../lib/ligerUI/js/plugins/ligerResizable.js" type="text/javascript"></script>
  11. <script src="../../lib/ligerUI/js/plugins/ligerTree.js" type="text/javascript"></script>
  12. <script src="../../lib/ligerUI/js/plugins/ligerComboBox.js" type="text/javascript"></script>
  13. <script type="text/javascript">
  14. $(function ()
  15. {
  16. $("#txt1").ligerComboBox({
  17. width : 180,
  18. selectBoxWidth: 200,
  19. selectBoxHeight: 200, valueField: 'text', treeLeafOnly: false,
  20. tree: { url: '../tree/json.txt'}
  21. });
  22. $("#txt2").ligerComboBox({
  23. width: 180,
  24. selectBoxWidth: 200,
  25. selectBoxHeight: 200, valueField: 'text',treeLeafOnly:false,
  26. tree: { url: '../tree/tree.json', checkbox: false }
  27. });
  28. $("#txt3").ligerComboBox({
  29. width: 180,
  30. selectBoxWidth: 200,
  31. selectBoxHeight: 200, valueField: 'text',
  32. tree: { url: '../tree/tree.json' }
  33. });
  34. });
  35. </script>
  36. </head>
  37. <body style="padding:10px">
  38. 带复选框: <br />
  39. <input type="text" id="txt1"/>
  40. <br />
  41. 不带复选框: <br />
  42. <input type="text" id="txt2"/>
  43. <br />
  44. 只选择叶节点: <br />
  45. <input type="text" id="txt3"/>
  46. <div style="display:none;">
  47. </div>
  48. </body>
  49. </html>