actions.html 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>MenuButton 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>MenuButton 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').menubutton('disable')">Disable Edit</a>
  17. <a href="#" class="easyui-linkbutton" onclick="$('#btn-edit').menubutton('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-menubutton" data-options="menu:'#mm1',iconCls:'icon-edit'">Edit</a>
  22. <a href="#" class="easyui-menubutton" data-options="menu:'#mm2',iconCls:'icon-help'">Help</a>
  23. <a href="#" class="easyui-menubutton" data-options="menu:'#mm3'">About</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>Help</div>
  49. <div>Update</div>
  50. <div>About</div>
  51. </div>
  52. <div id="mm3" class="menu-content" style="background:#f0f0f0;padding:10px;text-align:left">
  53. <img src="http://www.jeasyui.com/images/logo1.png" style="width:150px;height:50px">
  54. <p style="font-size:14px;color:#444;">Try jQuery EasyUI to build your modern, interactive, javascript applications.</p>
  55. </div>
  56. </body>
  57. </html>