Mercurial > lada > lada-client
changeset 1179:08bd9f1c791b
Implement allowBlank for custom ComboBox.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 04 Aug 2016 16:59:37 +0200 |
parents | 3e9a37ca9ae9 |
children | 1ae5e4f0f2c8 |
files | app/view/widget/base/ComboBox.js |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
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,