action-grid.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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=utf-8" />
  5. <title>Actions Example</title>
  6. <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
  7. <link rel="stylesheet" type="text/css" href="../shared/example.css" />
  8. <!-- GC -->
  9. <script type="text/javascript" src="../../ext-all.js"></script>
  10. <script type="text/javascript" src="../shared/examples.js"></script>
  11. <!-- page specific -->
  12. <style type="text/css">
  13. /* style rows on mouseover */
  14. .x-grid-row-over .x-grid-cell-inner {
  15. font-weight: bold;
  16. }
  17. /* Style the buyAction Components; Button and MenuItem */
  18. .buy-button {
  19. background-image: url(../shared/icons/fam/accept.png) !important;
  20. background-repeat: no-repeat !important;
  21. }
  22. </style>
  23. <script type="text/javascript" src="action-grid.js"></script>
  24. </head>
  25. <body>
  26. <h1>Actions Example</h1>
  27. <p>This example shows how to create multiple active UI event handling widgets from a single Action definition.</p>
  28. <p>Both Buttons and MenuItems can be created from the same Action instance. Action's enable, disable, hide, show and
  29. setText methods affect every Component created from that Action.<p>
  30. <p>In this example, the Action is disabled when there is no grid selection, and this disables both Buttons and MenuItems.</p>
  31. <p>Note that the js is not minified so it is readable. See <a href="action-grid.js">action-grid.js</a>.</p>
  32. <div id="grid-example"></div>
  33. </body>
  34. </html>