Mercurial > lada > lada-client
comparison 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 |
comparison
equal
deleted
inserted
replaced
1178:3e9a37ca9ae9 | 1179:08bd9f1c791b |
---|---|
21 | 21 |
22 initComponent: function() { | 22 initComponent: function() { |
23 if (this.editable === undefined) { | 23 if (this.editable === undefined) { |
24 this.editable = true; | 24 this.editable = true; |
25 } | 25 } |
26 if (this.allowBlank === undefined) { | |
27 this.allowBlank = true; | |
28 } | |
26 this.items = [{ | 29 this.items = [{ |
27 xtype: 'combobox', | 30 xtype: 'combobox', |
28 flex: 1, | 31 flex: 1, |
29 name: this.name, | 32 name: this.name, |
30 maxLength: this.maxLength, | 33 maxLength: this.maxLength, |
42 minChars: this.minChars, | 45 minChars: this.minChars, |
43 maxChars: this.maxChars, | 46 maxChars: this.maxChars, |
44 multiSelect: this.multiSelect, | 47 multiSelect: this.multiSelect, |
45 editable: this.editable, | 48 editable: this.editable, |
46 readOnly: this.readOnly, | 49 readOnly: this.readOnly, |
50 allowBlank: this.allowBlank, | |
47 forceSelection: this.forceSelection || false, | 51 forceSelection: this.forceSelection || false, |
48 msgTarget: 'none', | 52 msgTarget: 'none', |
49 value: this.value, | 53 value: this.value, |
50 tpl: this.tpl, | 54 tpl: this.tpl, |
51 displayTpl: this.displayTpl | 55 displayTpl: this.displayTpl |