[Lada-commits] [PATCH 1 of 2] Implement allowBlank for custom ComboBox
Wald Commits
scm-commit at wald.intevation.org
Thu Aug 4 17:17:24 CEST 2016
# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1470322777 -7200
# Node ID 08bd9f1c791b97f3ff9dbf176c66f5178e76c07a
# Parent 3e9a37ca9ae90dac8bbe2a58c9ab443c5c2dd886
Implement allowBlank for custom ComboBox.
diff -r 3e9a37ca9ae9 -r 08bd9f1c791b app/view/widget/base/ComboBox.js
--- 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,
More information about the Lada-commits
mailing list