PDA

View Full Version : How to change color of EXJTS 4.1 button in IE



pnguyen02
14 Aug 2012, 6:28 AM
I want to change the color of an Extjs button. This code is able to work in Firefox but not in IE.

var red_btn = Ext.create('Ext.Button', {
text : 'Red',
style: {
background: '#FF0000'
},
renderTo: Ext.getBody()
});

Any suggestions?
Thanks

Tim Toady
14 Aug 2012, 6:33 AM
IE uses images for backgrounds. See the theming guide
http://docs.sencha.com/ext-js/4-1/#!/guide/theming

pnguyen02
14 Aug 2012, 8:53 AM
Thanks i'll try this out.