kosmos
kosmos

Reputation: 380

Style combo box field in Ext JS

I have a combo box that i am simply trying to make bold. The data is in a store. I can bold the item in the list, but i cannot bold the item after it is selected in the text box.

I have tried:

fontWeight: 'bold', cls: 'make-bold', itemCls:'make-bold',

I can bold the list via a template but not the item actually in the text field.

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>')
}, {

Upvotes: 1

Views: 5108

Answers (1)

kosmos
kosmos

Reputation: 380

this did it

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

why do i need both?

Upvotes: 1

Related Questions