comboBoxTable.htm 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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/ligerCheckBox.js" type="text/javascript"></script>
  11. <script src="../../lib/ligerUI/js/plugins/ligerResizable.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. var dataGrid = [
  17. { id: 1, name: '李三', sex: '男' },
  18. { id: 2, name: '李四', sex: '女' },
  19. { id: 3, name: '赵武', sex: '女' },
  20. { id: 4, name: '陈留', sex: '女' }
  21. ];
  22. var dataGridColumns = [
  23. { header: 'ID', name: 'id', width: 20 },
  24. { header: '名字', name: 'name' },
  25. { header: '性别', name: 'sex' }
  26. ];
  27. $("#txtGrid").ligerComboBox({ data: dataGrid, textField: 'name', columns: dataGridColumns, selectBoxWidth: 200 ,label:'LABEL',labelWidth:100
  28. });
  29. });
  30. </script>
  31. </head>
  32. <body style="padding:10px">
  33. <h3>表格</h3>
  34. <input type="text" id="txtGrid"/>
  35. <br />
  36. <div style="display:none;">
  37. </div>
  38. </body>
  39. </html>