toggle.html 1.1 KB

12345678910111213141516171819202122232425
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Toggle Button - 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>Toggle Button</h2>
  14. <p>Click the button below to switch its selected state.</p>
  15. <div style="margin:10px 0 40px 0;"></div>
  16. <div style="padding:5px 0;">
  17. <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',toggle:true">Add</a>
  18. <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-remove',toggle:true">Remove</a>
  19. <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-save',toggle:true,selected:true">Save</a>
  20. <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-cut',toggle:true">Cut</a>
  21. <a href="#" class="easyui-linkbutton" data-options="toggle:true">Text Button</a>
  22. </div>
  23. </body>
  24. </html>