-/*\r
- * Ext JS Library 2.2.1\r
- * Copyright(c) 2006-2009, Ext JS, LLC.\r
- * licensing@extjs.com\r
- * \r
- * http://extjs.com/license\r
- */\r
-\r
+/*!
+ * Ext JS Library 3.0.3
+ * Copyright(c) 2006-2009 Ext JS, LLC
+ * licensing@extjs.com
+ * http://www.extjs.com/license
+ */
Ext.onReady(function(){\r
\r
Ext.state.Manager.setProvider(\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 : {\r
- 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
+ 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
+ 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
- items : [nav, tabs]\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(button);\r
+ win.show(this);\r
});\r
});
\ No newline at end of file