var testCombo = Ext.create('Ext.form.field.ComboBox', {
displayField : 'name',
valueField : 'code',
editable : false,
store : testStore,
emptyText : 'hello',
listConfig : {
maxHeight : 100,
getInnerTpl : function() {
return '<div data-qtip="{code}">{name}</div>';
}
}
});
转载于:https://my.oschina.net/crazybird/blog/397059