Hossam Ghareeb
Hossam Ghareeb

Reputation: 7123

Change button label color Sencha

How to change the color of buttonLabel in Sencha? Now it appears as Black, so how to change it my code:

xtype: 'button',
ui: 'plain',
text:'SAVED SEARCHES',
centered:true,
iconCls: 'search',
iconAlign:'center',
height:'100%',              
width:'18%',
left:'29.68%',
cls: 'x-iconalign-top',
labelCls:"font-size: 100%;"

Upvotes: 0

Views: 3805

Answers (1)

Hossam Ghareeb
Hossam Ghareeb

Reputation: 7123

I have tried with attributes and i found the solution. i set labelCls a custom css class that i have added it to app.css file.

Here is the class that i have added to app.css:

.customCls
{

color:red;
font-size: 100%;
}

And in the js file i set:

labelCls:"customCls"

Upvotes: 3

Related Questions