iconalign.html 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Icon Align on LinkButton - 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>Icon Align on LinkButton</h2>
  14. <p>Change the icon align to place icon on left, right, top or bottom of button.</p>
  15. <div style="margin:10px 0 40px 0;"></div>
  16. <div style="margin:10px 0 20px 0">
  17. <span>Select Icon Align: </span>
  18. <select onchange="$('#button-bar a').linkbutton({iconAlign:this.value})">
  19. <option value="left">Left</option>
  20. <option value="right">Right</option>
  21. <option value="top">Top</option>
  22. <option value="bottom">Bottom</option>
  23. </select>
  24. </div>
  25. <div id="button-bar">
  26. <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add'">Add</a>
  27. <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-remove'">Remove</a>
  28. <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-save'">Save</a>
  29. <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-cut',disabled:true">Cut</a>
  30. </div>
  31. </body>
  32. </html>