Upgrade to ExtJS 3.0.0 - Released 07/06/2009
[extjs.git] / docs / source / from-markup.html
1 <html>\r
2 <head>\r
3   <title>The source code</title>\r
4     <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />\r
5     <script type="text/javascript" src="../resources/prettify/prettify.js"></script>\r
6 </head>\r
7 <body  onload="prettyPrint();">\r
8     <pre class="prettyprint lang-js">Ext.onReady(function(){\r
9     var btn = Ext.get("create-grid");\r
10     btn.on("click", function(){\r
11         btn.dom.disabled = true;\r
12         \r
13         // create the grid\r
14         var grid = new Ext.ux.grid.TableGrid("the-table", {\r
15             stripeRows: true // stripe alternate rows\r
16         });\r
17         grid.render();\r
18     }, false, {\r
19         single: true\r
20     }); // run once\r
21 });
22 </pre>    \r
23 </body>\r
24 </html>