Upgrade to ExtJS 3.0.0 - Released 07/06/2009
[extjs.git] / examples / grid / from-markup.js
1 /*!
2  * Ext JS Library 3.0.0
3  * Copyright(c) 2006-2009 Ext JS, LLC
4  * licensing@extjs.com
5  * http://www.extjs.com/license
6  */
7 Ext.onReady(function(){\r
8     var btn = Ext.get("create-grid");\r
9     btn.on("click", function(){\r
10         btn.dom.disabled = true;\r
11         \r
12         // create the grid\r
13         var grid = new Ext.ux.grid.TableGrid("the-table", {\r
14             stripeRows: true // stripe alternate rows\r
15         });\r
16         grid.render();\r
17     }, false, {\r
18         single: true\r
19     }); // run once\r
20 });