javascript - change button text color in ExtJS -
i need change text color of button. defined css class like;
.mbutton{ background:transparent; color:red; border:none; } and button definition here;
ext.create('ext.button', { renderto: ext.getbody(), text: 'red text', cls:'mbutton' });
a button generated span elements inside. color need changed in span instead in button. way:
.mbutton span{ color:red; }
Comments
Post a Comment