X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/ee06f37b0f6f6d94cd05a6ffae556660f7c4a2bc..c930e9176a5a85509c5b0230e2bff5c22a591432:/examples/tabs/tabs-adv.js diff --git a/examples/tabs/tabs-adv.js b/examples/tabs/tabs-adv.js index 2b89fadb..80b4e068 100644 --- a/examples/tabs/tabs-adv.js +++ b/examples/tabs/tabs-adv.js @@ -1,43 +1,41 @@ -/* - * Ext JS Library 2.2.1 - * Copyright(c) 2006-2009, Ext JS, LLC. - * licensing@extjs.com - * - * http://extjs.com/license - */ - -Ext.onReady(function(){ - - var tabs = new Ext.TabPanel({ - renderTo:'tabs', - resizeTabs:true, // turn on tab resizing - minTabWidth: 115, - tabWidth:135, - enableTabScroll:true, - width:600, - height:250, - defaults: {autoScroll:true}, - plugins: new Ext.ux.TabCloseMenu() - }); - - // tab generation code - var index = 0; - while(index < 7){ - addTab(); - } - function addTab(){ - tabs.add({ - title: 'New Tab ' + (++index), - iconCls: 'tabs', - html: 'Tab Body ' + (index) + '

' - + Ext.example.bogusMarkup, - closable:true - }).show(); - } - - new Ext.Button({ - text: 'Add Tab', - handler: addTab, - iconCls:'new-tab' - }).render(document.body, 'tabs'); +/*! + * Ext JS Library 3.0.0 + * Copyright(c) 2006-2009 Ext JS, LLC + * licensing@extjs.com + * http://www.extjs.com/license + */ +Ext.onReady(function(){ + + var tabs = new Ext.TabPanel({ + renderTo:'tabs', + resizeTabs:true, // turn on tab resizing + minTabWidth: 115, + tabWidth:135, + enableTabScroll:true, + width:600, + height:250, + defaults: {autoScroll:true}, + plugins: new Ext.ux.TabCloseMenu() + }); + + // tab generation code + var index = 0; + while(index < 7){ + addTab(); + } + function addTab(){ + tabs.add({ + title: 'New Tab ' + (++index), + iconCls: 'tabs', + html: 'Tab Body ' + (index) + '

' + + Ext.example.bogusMarkup, + closable:true + }).show(); + } + + new Ext.Button({ + text: 'Add Tab', + handler: addTab, + iconCls:'new-tab' + }).render(document.body, 'tabs'); }); \ No newline at end of file