3 This file is part of Ext JS 4
5 Copyright (c) 2011 Sencha Inc
7 Contact: http://www.sencha.com/contact
9 GNU General Public License Usage
10 This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file. Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html.
12 If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact.
15 Ext.require('Ext.tab.*');
17 Ext.onReady(function(){
18 // basic tabs 1, built from existing content
19 var tabs = Ext.createWidget('tabpanel', {
23 tabPosition: 'bottom',
37 // second tabs built from JS
38 var tabs2 = Ext.createWidget('tabpanel', {
39 renderTo: document.body,
43 tabPosition: 'bottom',
51 html: "My content was added during construction."
60 activate: function(tab) {
70 params: 'foo=123&bar=abc'
75 activate: function(tab){
76 alert(tab.title + ' was activated.');
79 html: "I am tab 4's content. I also have an event listener attached."
81 title: 'Disabled Tab',
83 html: "Can't see me cause I'm disabled"