thenewmexican
18 Aug 2009, 5:03 PM
Is it possible to change the tab header background color.
So far. I have But. The tab header stays the default color
getRedColorTab : function(){
var centerPanel = new Ext.form.FormPanel({
region: 'center',
});
var retVal = new Ext.Panel(
{
layout: 'border',
id: "myDiffColorPanel",
title: "My Red Tab",
bodyStyle: 'background-color: #FF0000',
items: [
centerPanel
]
}
);
return retVal;
}
if(createRedTab == true){
tabsArray[arrayIndex++] = com.mystuff.guiBuilding.getRedColorTab();
}
var centerTabPanel = new Ext.TabPanel({
activeTab: 0,
region: 'center',
height: 100,
minTabWidth : 125,
enableTabScroll : true,
resizeTabs : true,
plugins: [scrollerMenu],
items: [
tabsArray
]
});
So far. I have But. The tab header stays the default color
getRedColorTab : function(){
var centerPanel = new Ext.form.FormPanel({
region: 'center',
});
var retVal = new Ext.Panel(
{
layout: 'border',
id: "myDiffColorPanel",
title: "My Red Tab",
bodyStyle: 'background-color: #FF0000',
items: [
centerPanel
]
}
);
return retVal;
}
if(createRedTab == true){
tabsArray[arrayIndex++] = com.mystuff.guiBuilding.getRedColorTab();
}
var centerTabPanel = new Ext.TabPanel({
activeTab: 0,
region: 'center',
height: 100,
minTabWidth : 125,
enableTabScroll : true,
resizeTabs : true,
plugins: [scrollerMenu],
items: [
tabsArray
]
});