PDA

View Full Version : Hidden tabbar



melvin7
19 Sep 2011, 12:38 AM
I have an app use the Ext.TabPanel.
When the device is horizontal i want to hide the tabbar in the TabPanel.
Here is my code:



Jkb.cfg = {};


Jkb.App = Ext.extend(Ext.TabPanel, {
fullscreen : true,
ui: 'light',
monitorOrientation:true,
tabBar : {
dock : 'bottom',
sortable : true,
layout : {
pack : 'center'
}
},
cardSwitchAnimation : false,
initComponent : function() {
this.items = [{
xtype : 'indexList',
iconCls : 'home',
title : 'Home',
confTitle : this.title,
shortUrl : this.shortUrl
}, {
title : 'Favorites',
iconCls : 'favorites',
xtype: 'favList'
}, {
title : 'Search',
iconCls : 'search',
xtype:'search'
}, {
title : 'About',
iconCls : 'info'
} ];




Jkb.cfg = {};
Jkb.cfg.shortUrl = this.shortUrl;
Jkb.cfg.title = this.title;
Jkb.App.superclass.initComponent.call(this);
}


});

Who can help me about this.