statusbar-advanced.html 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  5. <title>Advanced Ext.ux.StatusBar Example</title>
  6. <!-- Ext -->
  7. <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
  8. <script type="text/javascript" src="../../ext-all.js"></script>
  9. <link rel="stylesheet" type="text/css" href="../ux/statusbar/css/statusbar.css" />
  10. <link rel="stylesheet" type="text/css" href="../shared/example.css" />
  11. <!-- GC -->
  12. <style>
  13. .list {
  14. list-style-image:none;
  15. list-style-position:outside;
  16. list-style-type:square;
  17. padding-left:16px;
  18. }
  19. .list li {
  20. font-size:11px;
  21. padding:3px;
  22. }
  23. </style>
  24. <script type="text/javascript" src="statusbar-advanced.js"> </script>
  25. </head>
  26. <body>
  27. <h1>Advanced StatusBar Example</h1>
  28. <p>This is an advanced example of customizing the <a href="../ux/statusbar/StatusBar.js">Ext.ux.StatusBar</a> component via a plugin.</p>
  29. <p>Note that the js is not minified so it is readable. See <a href="statusbar-advanced.js">statusbar-advanced.js</a>.</p>
  30. <h2>Customizing the StatusBar</h2>
  31. <p>The <a href="../ux/statusbar/ValidationStatus.js">ValidationStatus</a> plugin hooks into the StatusBar and automatically
  32. monitors the validation status of any fields in the associated FormPanel. Items of interest:</p>
  33. <ul class="list">
  34. <li>The StatusBar syncs in real-time with the valid state of the form as you type</li>
  35. <li>When the form is invalid, the error status message can be clicked to hide/show a custom error list</li>
  36. <li>The error list items can be clicked to focus the associated fields</li>
  37. <li>After submitting successfully, note that the confirmation status message will fade out after 5
  38. seconds and return to the default status (this is a config option)</li>
  39. </ul><br>
  40. </body>
  41. </html>