Upgrade to ExtJS 3.0.0 - Released 07/06/2009
[extjs.git] / docs / source / layout.html
diff --git a/docs/source/layout.html b/docs/source/layout.html
new file mode 100644 (file)
index 0000000..5df2b3e
--- /dev/null
@@ -0,0 +1,64 @@
+<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
+    \r
+    Ext.state.Manager.setProvider(\r
+            new Ext.state.SessionProvider({state: Ext.appState}));\r
+\r
+    var button = Ext.get('show-btn');\r
+\r
+    button.on('click', function(){\r
+\r
+        // tabs for the center\r
+        var tabs = new Ext.TabPanel({\r
+            region: 'center',\r
+            margins:'3 3 3 0', \r
+            activeTab: 0,\r
+            defaults:{autoScroll:true},\r
+\r
+            items:[{\r
+                title: 'Bogus Tab',\r
+                html: Ext.example.bogusMarkup\r
+            },{\r
+                title: 'Another Tab',\r
+                html: Ext.example.bogusMarkup\r
+            },{\r
+                title: 'Closable Tab',\r
+                html: Ext.example.bogusMarkup,\r
+                closable:true\r
+            }]\r
+        });\r
+\r
+        // Panel for the west\r
+        var nav = new Ext.Panel({\r
+            title: 'Navigation',\r
+            region: 'west',\r
+            split: true,\r
+            width: 200,\r
+            collapsible: true,\r
+            margins:'3 0 3 3',\r
+            cmargins:'3 3 3 3'\r
+        });\r
+\r
+        var win = new Ext.Window({\r
+            title: 'Layout Window',\r
+            closable:true,\r
+            width:600,\r
+            height:350,\r
+            //border:false,\r
+            plain:true,\r
+            layout: 'border',\r
+\r
+            items: [nav, tabs]\r
+        });\r
+\r
+        win.show(this);\r
+    });\r
+});</pre>    \r
+</body>\r
+</html>
\ No newline at end of file