PDA

View Full Version : set toolbar's background color



shineliu
19 Jun 2012, 7:30 PM
How to change the background-color of the toolbar? i have set the css or style, but it not work

sword-it
19 Jun 2012, 10:07 PM
Hi!

You can try any of the following methods to change the background color:-

Try to change background from dom, as an example:-



YourComponent.getTopToolbar().getEl().dom.style.background = 'red';



2. Override 'background-color' in css and do not forget to add !important

friend
20 Jun 2012, 4:50 AM
This also works:



{
xtype: 'toolbar',
style: {
background: 'red'
},
<...>
}

logicnext.pramod
20 Jun 2012, 5:33 AM
set ur config style like this...{ xtype: 'toolbar', style: { "background": "your color" }, <...>}