X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/2e847cf21b8ab9d15fa167b315ca5b2fa92638fc..3789b528d8dd8aad4558e38e22d775bcab1cbd36:/examples/grid/transform-dom.js diff --git a/examples/grid/transform-dom.js b/examples/grid/transform-dom.js new file mode 100644 index 00000000..8b982676 --- /dev/null +++ b/examples/grid/transform-dom.js @@ -0,0 +1,25 @@ +Ext.Loader.setConfig({ + enabled: true +}); +Ext.Loader.setPath('Ext.ux', '../ux'); + +Ext.require([ + 'Ext.data.*', + 'Ext.grid.*', + 'Ext.ux.grid.TransformGrid' +]); + +Ext.onReady(function(){ + var btn = Ext.get("create-grid"); + btn.on("click", function(){ + btn.dom.disabled = true; + + // create the grid + var grid = Ext.create('Ext.ux.grid.TransformGrid', "the-table", { + stripeRows: true, + height: 130 + }); + grid.render(); + }); +}); +