Skip to content
Snippets Groups Projects

Release 0.9.5

Merged LE GAC Renaud requested to merge master into production
+ 101
8
Compare changes
  • Side-by-side
  • Inline
Files
@@ -14,9 +14,18 @@ Ext.define('Dbui.form.field.ComboBoxUserReset', {
@@ -14,9 +14,18 @@ Ext.define('Dbui.form.field.ComboBoxUserReset', {
/**
/**
* @cfg {String} emptyText (required)
* @cfg {String} emptyText (required)
* Define the content of the first row which is used to reset the ComboBox.
* Define the content of the first row which is used to reset the ComboBox.
 
* EmptyText matches the displayField while emptyId matches valueField
*/
*/
emptyText: 'select...',
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
// private
refStore: null,
refStore: null,
@@ -115,6 +124,8 @@ Ext.define('Dbui.form.field.ComboBoxUserReset', {
@@ -115,6 +124,8 @@ Ext.define('Dbui.form.field.ComboBoxUserReset', {
// create the first item "select..."
// create the first item "select..."
record = me.store.model.create();
record = me.store.model.create();
record.set(displayField, me.emptyText);
record.set(displayField, me.emptyText);
 
record.set(me.valueField, me.emptyValue);
 
store.add(record);
store.add(record);
// list of records to be load on the new store
// list of records to be load on the new store
Loading