gberg927
gberg927

Reputation: 1686

ExtJS 3 Checkbox BoxLabel font

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

Answers (2)

Neffets
Neffets

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

Marko
Marko

Reputation: 5552

Try using labelStyle or labelCls in the checkbox config.

Upvotes: 0

Related Questions