itemicon.html 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Show Item Icon in ComboBox - 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>Show Item Icon in ComboBox</h2>
  14. <p>This example shows how to display item icon in ComboBox.</p>
  15. <div style="margin:20px 0"></div>
  16. <div class="easyui-panel" style="width:100%;max-width:400px;padding:30px 60px;">
  17. <div style="margin-bottom:20px">
  18. <input class="easyui-combobox" style="width:100%;" data-options="
  19. showItemIcon: true,
  20. data: [
  21. {value:'add',text:'Add',iconCls:'icon-add'},
  22. {value:'del',text:'Delete',iconCls:'icon-remove'},
  23. {value:'save',text:'Save',iconCls:'icon-save',selected:true},
  24. {value:'cancel',text:'Cancel',iconCls:'icon-cancel'},
  25. {value:'undo',text:'Undo',iconCls:'icon-undo'},
  26. {value:'redo',text:'Redo',iconCls:'icon-redo'}
  27. ],
  28. editable: false,
  29. panelHeight: 'auto',
  30. label: 'Perform Action:',
  31. labelPosition: 'top'
  32. ">
  33. </div>
  34. </div>
  35. </body>