PDA

View Full Version : tabpanel without tabs showing...



maneljn
30 Aug 2012, 2:52 AM
Is it possible to work with tabpanels but without showing the top tab bar ? I mean, i would change between active tabs programatically.

Manel

tvanzoelen
30 Aug 2012, 3:15 AM
add the follwing property to the tab



tabConfig: {
hidden: true
}


Here you can read all the properties for the tabConfig
http://docs.sencha.com/ext-js/4-1/#!/api/Ext.tab.Tab

droessner
30 Aug 2012, 4:53 AM
The card layout does exactly that. It's basically a tab panel without the tab bar.

http://docs.sencha.com/ext-js/4-1/#!/api/Ext.layout.container.Card

maneljn
30 Aug 2012, 4:58 AM
Your solution works fine, but i 've found that with extjs 4.1.1 RC2 i can use this in the tabpanel and works better, because i have'nt to put hidden in all tabs.



tabBar: {
hidden: true
},



add the follwing property to the tab



tabConfig: {
hidden: true
}


Here you can read all the properties for the tabConfig
http://docs.sencha.com/ext-js/4-1/#!/api/Ext.tab.Tab (http://docs.sencha.com/ext-js/4-1/#%21/api/Ext.tab.Tab)