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