1 Ext.require('Ext.tab.*');
3 Ext.onReady(function(){
4 // basic tabs 1, built from existing content
5 var tabs = Ext.createWidget('tabpanel', {
22 // second tabs built from JS
23 var tabs2 = Ext.createWidget('tabpanel', {
24 renderTo: document.body,
35 html: "My content was added during construction."
44 activate: function(tab) {
54 params: 'foo=123&bar=abc'
59 activate: function(tab){
60 alert(tab.title + ' was activated.');
63 html: "I am tab 4's content. I also have an event listener attached."
65 title: 'Disabled Tab',
67 html: "Can't see me cause I'm disabled"