customtools.html 1.4 KB

123456789101112131415161718192021222324252627282930
  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. <p>Click the right top buttons to perform actions.</p>
  15. <div style="margin:20px 0;">
  16. <a href="javascript:void(0)" class="easyui-linkbutton" onclick="$('#w').window('open')">Open</a>
  17. <a href="javascript:void(0)" class="easyui-linkbutton" onclick="$('#w').window('close')">Close</a>
  18. </div>
  19. <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;">
  20. The window content.
  21. </div>
  22. <div id="tt">
  23. <a href="javascript:void(0)" class="icon-add" onclick="javascript:alert('add')"></a>
  24. <a href="javascript:void(0)" class="icon-edit" onclick="javascript:alert('edit')"></a>
  25. <a href="javascript:void(0)" class="icon-cut" onclick="javascript:alert('cut')"></a>
  26. <a href="javascript:void(0)" class="icon-help" onclick="javascript:alert('help')"></a>
  27. </div>
  28. </body>
  29. </html>