diff app/view/widget/base/ComboBox.js @ 1179:08bd9f1c791b

Implement allowBlank for custom ComboBox.
author Tom Gottfried <tom@intevation.de>
date Thu, 04 Aug 2016 16:59:37 +0200
parents 7baaf2cd3f57
children 3e6756b0fc97
line wrap: on
line diff
--- a/app/view/widget/base/ComboBox.js	Mon Jul 18 13:23:30 2016 +0200
+++ b/app/view/widget/base/ComboBox.js	Thu Aug 04 16:59:37 2016 +0200
@@ -23,6 +23,9 @@
         if (this.editable === undefined) {
             this.editable = true;
         }
+        if (this.allowBlank === undefined) {
+            this.allowBlank = true;
+        }
         this.items = [{
             xtype: 'combobox',
             flex: 1,
@@ -44,6 +47,7 @@
             multiSelect: this.multiSelect,
             editable: this.editable,
             readOnly: this.readOnly,
+            allowBlank: this.allowBlank,
             forceSelection: this.forceSelection || false,
             msgTarget: 'none',
             value: this.value,

http://lada.wald.intevation.org