样式组合框字段在Ext JS



我有一个组合框,我只是想让粗体。数据在存储中。我可以在列表中加粗项目,但不能在文本框中选中项目后加粗项目。

I have try:

fontWeight:"大胆",cls:"大胆",itemCls:"大胆",

我可以通过模板加粗列表,但不能加粗文本字段中的项目。

items:[
{
xtype: 'combobox',
name: 'inputType',
id: 'inputType',
padding : '6 5 5 5',
store: 'Codes',
displayField: 'display',
valueField: 'code',
value: 'Inp_CODE',
editable: false,
width: 80,
tpl: Ext.create('Ext.XTemplate', 
'<tpl for=".">','<div class="x-boundlist-item"><b>{display}</b></div>','</tpl>')
}, {

这就行了

 fieldCls: 'make-bold', 
 style: {               
     fontWeight: 'bold' 
 }                      

为什么我需要两者?

最新更新