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'    }); 

fiddle: https://fiddle.sencha.com/#fiddle/olj

a button generated span elements inside. color need changed in span instead in button. way:

.mbutton span{     color:red; } 

Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -