customtools.html 1.5 KB

123456789101112131415161718192021222324252627282930313233
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Custom Window Tools - 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 Window Tools</h2>
  14. <div class="demo-info">
  15. <div class="demo-tip icon-tip"></div>
  16. <div>Click the right top buttons to perform actions.</div>
  17. </div>
  18. <div style="margin:10px 0;">
  19. <a href="javascript:void(0)" class="easyui-linkbutton" onclick="$('#w').window('open')">Open</a>
  20. <a href="javascript:void(0)" class="easyui-linkbutton" onclick="$('#w').window('close')">Close</a>
  21. </div>
  22. <div id="w" class="easyui-window" title="Custom Window Tools" data-options="iconCls:'icon-save',minimizable:false,tools:'#tt'" style="width:500px;height:200px;padding:10px;">
  23. The window content.
  24. </div>
  25. <div id="tt">
  26. <a href="javascript:void(0)" class="icon-add" onclick="javascript:alert('add')"></a>
  27. <a href="javascript:void(0)" class="icon-edit" onclick="javascript:alert('edit')"></a>
  28. <a href="javascript:void(0)" class="icon-cut" onclick="javascript:alert('cut')"></a>
  29. <a href="javascript:void(0)" class="icon-help" onclick="javascript:alert('help')"></a>
  30. </div>
  31. </body>
  32. </html>