Besides fitting more with the declarative style of ExtJS, this has the
interesting side effect of allowing comboboxes to work with ExtJS6
deleteEmpty: true,
comboItems: undefined,
+ displayField: 'value',
+ valueField: 'key',
+ queryMode: 'local',
+ // overide framework function to implement deleteEmpty behaviour
getSubmitData: function() {
var me = this,
data = null,
me.editable = false;
}
- Ext.apply(me, {
- displayField: 'value',
- valueField: 'key',
- queryMode: 'local'
- });
-
me.callParent();
}
});