-/*\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.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 : {\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
- }]\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
- items : [nav, tabs]\r
- });\r
-\r
- win.show(button);\r
- });\r
+/*!
+ * Ext JS Library 3.3.1
+ * Copyright(c) 2006-2010 Sencha Inc.
+ * licensing@sencha.com
+ * http://www.sencha.com/license
+ */
+Ext.onReady(function(){
+
+ Ext.state.Manager.setProvider(
+ new Ext.state.SessionProvider({state: Ext.appState}));
+
+ var button = Ext.get('show-btn');
+
+ button.on('click', function(){
+
+ // tabs for the center
+ var tabs = new Ext.TabPanel({
+ region: 'center',
+ margins:'3 3 3 0',
+ activeTab: 0,
+ defaults:{autoScroll:true},
+
+ items:[{
+ title: 'Bogus Tab',
+ html: Ext.example.bogusMarkup
+ },{
+ title: 'Another Tab',
+ html: Ext.example.bogusMarkup
+ },{
+ title: 'Closable Tab',
+ html: Ext.example.bogusMarkup,
+ closable:true
+ }]
+ });
+
+ // Panel for the west
+ var nav = new Ext.Panel({
+ title: 'Navigation',
+ region: 'west',
+ split: true,
+ width: 200,
+ collapsible: true,
+ margins:'3 0 3 3',
+ cmargins:'3 3 3 3'
+ });
+
+ var win = new Ext.Window({
+ title: 'Layout Window',
+ closable:true,
+ width:600,
+ height:350,
+ //border:false,
+ plain:true,
+ layout: 'border',
+
+ items: [nav, tabs]
+ });
+
+ win.show(this);
+ });
});
\ No newline at end of file