custombuttons.html 1016 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Custom Pagination Buttons - 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>Custom Pagination Buttons</h2>
  14. <p>The customized buttons can be appended to page bar.</p>
  15. <div style="margin:20px 0;"></div>
  16. <div class="easyui-panel">
  17. <div class="easyui-pagination" data-options="total:114,buttons:buttons"></div>
  18. </div>
  19. <script>
  20. var buttons = [{
  21. iconCls:'icon-add',
  22. handler:function(){
  23. alert('add');
  24. }
  25. },{
  26. iconCls:'icon-cut',
  27. handler:function(){
  28. alert('cut');
  29. }
  30. },{
  31. iconCls:'icon-save',
  32. handler:function(){
  33. alert('save');
  34. }
  35. }];
  36. </script>
  37. </body>
  38. </html>