Mercurial > lada > lada-client
comparison app/view/widget/base/ComboBox.js @ 1080:15d7b7a9e177
Override getValue for Netzbetreiber Combobox to allways return the correct
value.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 13 Apr 2016 16:10:25 +0200 |
parents | d6e259e76de6 |
children | 7baaf2cd3f57 |
comparison
equal
deleted
inserted
replaced
1079:1c86a259c2ac | 1080:15d7b7a9e177 |
---|---|
18 border: 0, | 18 border: 0, |
19 | 19 |
20 margin: '0, 0, 5, 0', | 20 margin: '0, 0, 5, 0', |
21 | 21 |
22 initComponent: function() { | 22 initComponent: function() { |
23 console.log(this.editable); | |
24 if (this.editable === undefined) { | |
25 this.editable = true; | |
26 } | |
23 this.items = [{ | 27 this.items = [{ |
24 xtype: 'combobox', | 28 xtype: 'combobox', |
25 flex: 1, | 29 flex: 1, |
26 name: this.name, | 30 name: this.name, |
27 maxLength: this.maxLength, | 31 maxLength: this.maxLength, |
37 triggerAction: this.triggerAction, | 41 triggerAction: this.triggerAction, |
38 typeAhead: this.typeAhead, | 42 typeAhead: this.typeAhead, |
39 minChars: this.minChars, | 43 minChars: this.minChars, |
40 maxChars: this.maxChars, | 44 maxChars: this.maxChars, |
41 multiSelect: this.multiSelect, | 45 multiSelect: this.multiSelect, |
42 editable: this.editable || true, | 46 editable: this.editable, |
43 readOnly: this.readOnly, | 47 readOnly: this.readOnly, |
44 forceSelection: this.forceSelection || false, | 48 forceSelection: this.forceSelection || false, |
45 msgTarget: 'none', | 49 msgTarget: 'none', |
46 value: this.value, | 50 value: this.value, |
47 tpl: this.tpl, | 51 tpl: this.tpl, |