PDA

View Full Version : Tab Panel - Tab Bar with button on left and tabs right aligned



jayg27
12 May 2014, 4:56 AM
I am using ExtJS 4.1.3 and trying to create a tab panel with a split button on the left of the tab bar and want the tabs right aligned. I tried using a panel with a card layout but lost the tab L&F.

jsakalos
12 May 2014, 8:43 AM
It's quite easy:



tabpanel.tabBar.insert(0, {
xtype:'splitbutton'
,text:'Button'
,menu:{
items:[{
text:'Item 1'
},{
text:'Item 2'
}]
}
});