actions.html 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>SplitButton Actions - 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>SplitButton Actions</h2>
  14. <p>Click the buttons below to perform actions.</p>
  15. <div style="margin:20px 0;">
  16. <a href="#" class="easyui-linkbutton" onclick="$('#btn-edit').splitbutton('disable')">Disable Edit</a>
  17. <a href="#" class="easyui-linkbutton" onclick="$('#btn-edit').splitbutton('enable')">Enable Edit</a>
  18. </div>
  19. <div class="easyui-panel" style="padding:5px;">
  20. <a href="#" class="easyui-linkbutton" data-options="plain:true">Home</a>
  21. <a id="btn-edit" href="#" class="easyui-splitbutton" data-options="menu:'#mm1',iconCls:'icon-edit'">Edit</a>
  22. <a href="#" class="easyui-splitbutton" data-options="menu:'#mm2',iconCls:'icon-ok'">Ok</a>
  23. <a href="#" class="easyui-menubutton" data-options="menu:'#mm3',iconCls:'icon-help'">Help</a>
  24. </div>
  25. <div id="mm1" style="width:150px;">
  26. <div data-options="iconCls:'icon-undo'">Undo</div>
  27. <div data-options="iconCls:'icon-redo'">Redo</div>
  28. <div class="menu-sep"></div>
  29. <div>Cut</div>
  30. <div>Copy</div>
  31. <div>Paste</div>
  32. <div class="menu-sep"></div>
  33. <div>
  34. <span>Toolbar</span>
  35. <div>
  36. <div>Address</div>
  37. <div>Link</div>
  38. <div>Navigation Toolbar</div>
  39. <div>Bookmark Toolbar</div>
  40. <div class="menu-sep"></div>
  41. <div>New Toolbar...</div>
  42. </div>
  43. </div>
  44. <div data-options="iconCls:'icon-remove'">Delete</div>
  45. <div>Select All</div>
  46. </div>
  47. <div id="mm2" style="width:100px;">
  48. <div data-options="iconCls:'icon-ok'">Ok</div>
  49. <div data-options="iconCls:'icon-cancel'">Cancel</div>
  50. </div>
  51. <div id="mm3" style="width:150px;">
  52. <div>Help</div>
  53. <div>Update</div>
  54. <div>
  55. <span>About</span>
  56. <div class="menu-content" style="padding:10px;text-align:left">
  57. <img src="http://www.jeasyui.com/images/logo1.png" style="width:150px;height:50px">
  58. <p style="font-size:14px;color:#444">Try jQuery EasyUI to build your modern, interactive, javascript applications.</p>
  59. </div>
  60. </div>
  61. </div>
  62. </body>
  63. </html>