Upgrade to ExtJS 4.0.0 - Released 04/26/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.gif);
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.gif);
29         }
30     </style>
31     <script type="text/javascript" src="array-grid.js"></script>
32 </head>
33 <body>
34     <h1>Stateful Array Grid Example</h1>
35     <p>This example shows how to create a grid from Array data.</p>
36     <p>The grid is stateful so you can move or hide columns, reload the page, and come
37     back to the grid in the same state you left it in.</p>
38     <p>Note that the js is not minified so it is readable. See <a href="array-grid.js">array-grid.js</a>.</p>
39     <div id="grid-example"></div>
40 </body>
41 </html>