I found an override from this forum post which worked for me after a few tweaks.
Ext.override(Ext.Button, {
setIcon: function(url){
if (this.rendered){
var btnEl = this.getEl().child(this.buttonSelector);
btnEl.setStyle('background-image', 'url(' +url+')');
}
}
})
Very nice. Thanks :)
ReplyDelete