Upgrade to ExtJS 3.0.0 - Released 07/06/2009
[extjs.git] / docs / source / from-markup.html
diff --git a/docs/source/from-markup.html b/docs/source/from-markup.html
new file mode 100644 (file)
index 0000000..0609383
--- /dev/null
@@ -0,0 +1,24 @@
+<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