Upgrade to ExtJS 4.0.7 - Released 10/19/2011
[extjs.git] / examples / grid / array-grid.html
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>Stateful Array Grid 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     <script type="text/javascript" src="../../bootstrap.js"></script>
9
10     <!-- page specific -->
11     <style type="text/css">
12         /* style rows on mouseover */
13         .x-grid-row-over .x-grid-cell-inner {
14             font-weight: bold;
15         }
16         /* shared styles for the ActionColumn icons */
17         .x-action-col-cell img {
18             height: 16px;
19             width: 16px;
20             cursor: pointer;
21         }
22         /* custom icon for the "buy" ActionColumn icon */
23         .x-action-col-cell img.buy-col {
24             background-image: url(../shared/icons/fam/accept.png);
25         }
26         /* custom icon for the "alert" ActionColumn icon */
27         .x-action-col-cell img.alert-col {
28             background-image: url(../shared/icons/fam/error.png);
29         }
30
31         .x-ie6 .x-action-col-cell img.buy-col {
32             background-image: url(../shared/icons/fam/accept.gif);
33         }
34         .x-ie6.x-action-col-cell img.alert-col {
35             background-image: url(../shared/icons/fam/error.gif);
36         }
37
38         .x-ie6 .x-action-col-cell img {
39             position:relative;
40             top:-1px;
41         }
42     </style>
43     <script type="text/javascript" src="array-grid.js"></script>
44 </head>
45 <body>
46     <h1>Stateful Array Grid Example</h1>
47     <p>This example shows how to create a grid from Array data.</p>
48     <p>The grid is stateful so you can move or hide columns, reload the page, and come
49     back to the grid in the same state you left it in.</p>
50     <p>Note that the js is not minified so it is readable. See <a href="array-grid.js">array-grid.js</a>.</p>
51     <div id="grid-example"></div>
52 </body>
53 </html>