Could you help me to align to the right the entries in ExtJS combo listbox? The config 'style' doesn't work with text-align or I'm doing something wrong?
See sample coding or the fiddle example here
Ext.application({
name : 'Fiddle',
launch : function() {
Ext.create('Ext.form.Panel', {
bodyPadding: 10,
defaultType: 'textfield',
fieldDefaults: {
labelAlign: 'right',
labelWidth: 150
},
renderTo: Ext.getBody(),
standardSubmit: true,
title: 'Form',
width: 400,
items: [{
displayField: 'val1',
fieldLabel: 'Combo',
name: 'field01',
queryMode: 'local',
store: Ext.create('Ext.data.Store', {
fields: ['key1', 'val1'],
style: 'text-align: right', // doesn't work
data: [
{"key1":"AL", "val1":"Alabama..."},
{"key1":"AK", "val1":"Alaska"},
{"key1":"AZ", "val1":"Arizona"}
]
}),
valueField: 'key1',
xtype: 'combo'
}]
});
}
});