Commit a6bb2eda authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update ComboBoxUserReset to add the configuration emptyValue required by ExtJS 6.2.0.

parent c85d1758
......@@ -14,9 +14,18 @@ Ext.define('Dbui.form.field.ComboBoxUserReset', {
/**
* @cfg {String} emptyText (required)
* Define the content of the first row which is used to reset the ComboBox.
* EmptyText matches the displayField while emptyId matches valueField
*/
emptyText: 'select...',
/**
* @cfg {Number/String} emptyValue (required)
* Define the content of the first row which is used to reset the ComboBox.
* EmptyText matches the displayField while emptyId matches valueField
*/
emptyValue: -1,
// private
refStore: null,
......@@ -115,6 +124,8 @@ Ext.define('Dbui.form.field.ComboBoxUserReset', {
// create the first item "select..."
record = me.store.model.create();
record.set(displayField, me.emptyText);
record.set(me.valueField, me.emptyValue);
store.add(record);
// list of records to be load on the new store
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment