+++ /dev/null
-<html>\r
-<head>\r
- <title>The source code</title>\r
- <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />\r
- <script type="text/javascript" src="../resources/prettify/prettify.js"></script>\r
-</head>\r
-<body onload="prettyPrint();">\r
- <pre class="prettyprint lang-js">Ext.onReady(function(){\r
- var btn = Ext.get("create-grid");\r
- btn.on("click", function(){\r
- btn.dom.disabled = true;\r
- \r
- // create the grid\r
- var grid = new Ext.ux.grid.TableGrid("the-table", {\r
- stripeRows: true // stripe alternate rows\r
- });\r
- grid.render();\r
- }, false, {\r
- single: true\r
- }); // run once\r
-});
-</pre> \r
-</body>\r
-</html>
\ No newline at end of file