2011-12-12 41 views
0

我想知道是否可以更改checbox盒標籤的樣式(特別是字體)。ExtJS 3複選框BoxLabel字體

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

這是一個絕對佈局的FormPanel。

謝謝!

ExtJS的3.3

回答

0

嘗試在複選框配置使用labelStyle or labelCls

+0

,我使用ExtJS的3.3我應該提到。我不相信3.4中有一個labelCls。 labelStyle似乎不適用於boxLabel,但是fieldLabel。不過我想用boxLabel – gberg927

1

老問題,但我不介意。

labelStyle在3.4中不起作用。

我使用此解決方法:

boxLabel: '<span style="font-size: 12px;">' + 'My Label Text' + '</span>'