How to change the background-color of the toolbar? i have set the css or style, but it not work
Printable View
How to change the background-color of the toolbar? i have set the css or style, but it not work
Hi!
You can try any of the following methods to change the background color:-
- Try to change background from dom, as an example:-
2. Override 'background-color' in css and do not forget to add !importantCode:
YourComponent.getTopToolbar().getEl().dom.style.background = 'red';
This also works:
Code:{
xtype: 'toolbar',
style: {
background: 'red'
},
<...>
}
set ur config style like this...{ xtype: 'toolbar', style: { "background": "your color" }, <...>}