Hi,
I'm trying to add some style to an Ext.Button
Here is the code:
But the button did set with the style.Code:style: { //marginBottom: '10px', labelStyle: 'font-weight:bold; color:red;' } });
The button is in the bbar a GridPanel
Thanks!
Hi,
I'm trying to add some style to an Ext.Button
Here is the code:
But the button did set with the style.Code:style: { //marginBottom: '10px', labelStyle: 'font-weight:bold; color:red;' } });
The button is in the bbar a GridPanel
Thanks!
I don't think "labelStyle" is a valid CSS attribute
I took ti from the docs...
How should this be wrote?
the docs state:
labelStyle is only for the "fieldLabel"labelStyle : String
A CSS style specification string to apply directly to this field's label. Defaults to the container's labelStyle value if set (e.g., Ext.layout.FormLayout.labelStyle , or '').
try cls:
or you can cheatcls : String
A CSS class string to apply to the button's main element.
Code:new Ext.Window({ height : 400, width : 300, buttons : [ { text : '<span style="font-weight:bold; color:red;">red and bold button</span>' } ] }).show()
https://moduscreate.com/wp-content/t...es/favicon.png
Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
Thanks it works fine.
Regards,
Martin.-