You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.9 KiB

2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. <title>Stateful Array Grid Example</title>
  5. <!-- ** CSS ** -->
  6. <!-- base library -->
  7. <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
  8. <!-- overrides to base library -->
  9. <!-- page specific -->
  10. <link rel="stylesheet" type="text/css" href="../shared/examples.css" />
  11. <link rel="stylesheet" type="text/css" href="grid-examples.css" />
  12. <style type=text/css>
  13. /* style rows on mouseover */
  14. .x-grid3-row-over .x-grid3-cell-inner {
  15. font-weight: bold;
  16. }
  17. /* style for the "buy" ActionColumn icon */
  18. .x-action-col-cell img.buy-col {
  19. height: 16px;
  20. width: 16px;
  21. background-image: url(../shared/icons/fam/accept.png);
  22. }
  23. /* style for the "alert" ActionColumn icon */
  24. .x-action-col-cell img.alert-col {
  25. height: 16px;
  26. width: 16px;
  27. background-image: url(../shared/icons/fam/error.png);
  28. }
  29. </style>
  30. <!-- ** Javascript ** -->
  31. <!-- ExtJS library: base/adapter -->
  32. <script type="text/javascript" src="../../adapter/ext/ext-base.js"></script>
  33. <!-- ExtJS library: all widgets -->
  34. <script type="text/javascript" src="../../ext-all.js"></script>
  35. <!-- overrides to base library -->
  36. <!-- page specific -->
  37. <script type="text/javascript" src="array-grid.js"></script>
  38. </head>
  39. <body>
  40. <h1>Stateful Array Grid Example</h1>
  41. <p>This example shows how to create a grid from Array data.</p>
  42. <p>The grid is stateful so you can move or hide columns, reload the page, and come
  43. back to the grid in the same state you left it in.</p>
  44. <p>Note that the js is not minified so it is readable. See <a href="array-grid.js">array-grid.js</a>.</p>
  45. <div id="grid-example"></div>
  46. </body>
  47. </html>