clearicon.html 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>DateTimeSpinner with Clear Icon - 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>DateTimeSpinner with Clear Icon</h2>
  14. <p>A clear icon can be attached to the datetimespinner. Click it to clear the entered value.</p>
  15. <div style="margin:20px 0;"></div>
  16. <div class="easyui-panel" style="width:100%;max-width:400px;padding:30px 60px;">
  17. <div style="margin-bottom:20px">
  18. <input class="easyui-datetimespinner" value="6/24/2015 17:23:40" style="width:100%;" data-options="
  19. showSeconds: true,
  20. prompt: 'Input date time here!',
  21. icons:[{
  22. iconCls:'icon-clear',
  23. handler: function(e){
  24. $(e.data.target).datetimespinner('clear');
  25. }
  26. }],
  27. label: 'Start Time:',
  28. labelPosition: 'top'
  29. ">
  30. </div>
  31. </div>
  32. </body>
  33. </html>