Line | |
---|
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(){ |
---|
8 | var btn = Ext.get("create-grid"); |
---|
9 | btn.on("click", function(){ |
---|
10 | btn.dom.disabled = true; |
---|
11 | |
---|
12 | // create the grid |
---|
13 | var grid = new Ext.ux.grid.TableGrid("the-table", { |
---|
14 | stripeRows: true // stripe alternate rows |
---|
15 | }); |
---|
16 | grid.render(); |
---|
17 | }, false, { |
---|
18 | single: true |
---|
19 | }); // run once |
---|
20 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.