Mercurial > lada > lada-client
comparison app/view/widgets/Messeinheit.js @ 490:446e99cfd425
Updated views and controllers using the new model and stores.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 31 Oct 2014 21:28:31 +0100 |
parents | e45f4df57938 |
children | 850ccfe5f3c4 |
comparison
equal
deleted
inserted
replaced
489:6056a7fd9aa2 | 490:446e99cfd425 |
---|---|
8 | 8 |
9 /** | 9 /** |
10 * Combobox for Messeinheit | 10 * Combobox for Messeinheit |
11 */ | 11 */ |
12 Ext.define('Lada.view.widgets.Messeinheit' ,{ | 12 Ext.define('Lada.view.widgets.Messeinheit' ,{ |
13 extend: 'Ext.form.ComboBox', | 13 extend: 'Ext.form.ComboBox', |
14 alias: 'widget.messeinheit', | 14 require: ['Lada.store.StaMesseinheiten'], |
15 store: 'Messeinheit', | 15 alias: 'widget.messeinheit', |
16 displayField: 'einheit', | 16 store: 'StaMesseinheiten', |
17 valueField: 'mehId', | 17 displayField: 'einheit', |
18 emptyText:'Wählen Sie eine Messeinheit', | 18 valueField: 'id', |
19 // Enable filtering of comboboxes | 19 emptyText:'Wählen Sie eine Messeinheit', |
20 autoSelect: false, | 20 // Enable filtering of comboboxes |
21 queryMode: 'local', | 21 autoSelect: false, |
22 triggerAction : 'all', | 22 queryMode: 'local', |
23 typeAhead: false, | 23 triggerAction : 'all', |
24 minChars: 0, | 24 typeAhead: false, |
25 minChars: 0, | |
25 initComponent: function() { | 26 initComponent: function() { |
27 this.store = Ext.data.StoreManager.get('StaMesseinheiten'); | |
28 if (!this.store) { | |
29 this.store = Ext.create('Lada.store.StaMesseinheiten'); | |
30 } | |
26 this.callParent(arguments); | 31 this.callParent(arguments); |
27 } | 32 } |
28 }); | 33 }); |