Reputation: 1686
I was wondering if it is possible to change the style (specifically the font) of a checbox box label.
Ext.getCmp('variablesAttributesPanel').add({xtype: 'checkbox', id: variables[j].getTitle() + 'Checkbox', boxLabel: variableTitle, width: 362, x: 20, y: (j *40 + 20), listeners: {check: function(){createRequestURL(i)}}});
This is going in a FormPanel with absolute layout.
Thanks!
ExtJS 3.3
Upvotes: 0
Views: 5205
Reputation: 158
Old question but I don't mind.
labelStyle doesn't work in 3.4.
I use this workaround:
boxLabel: '<span style="font-size: 12px;">' + 'My Label Text' + '</span>'
Upvotes: 1