custombuttons.html 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. <div class="demo-info">
  15. <div class="demo-tip icon-tip"></div>
  16. <div>The customized buttons can be append to page bar.</div>
  17. </div>
  18. <div style="margin:10px 0;"></div>
  19. <div class="easyui-pagination" data-options="total:114,buttons:buttons" style="border:1px solid #ddd;"></div>
  20. <script>
  21. var buttons = [{
  22. iconCls:'icon-add',
  23. handler:function(){
  24. alert('add');
  25. }
  26. },{
  27. iconCls:'icon-cut',
  28. handler:function(){
  29. alert('cut');
  30. }
  31. },{
  32. iconCls:'icon-save',
  33. handler:function(){
  34. alert('save');
  35. }
  36. }];
  37. </script>
  38. </body>
  39. </html>