comparison app/view/widgets/Messgroesse.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 d07e5086a64b
comparison
equal deleted inserted replaced
489:6056a7fd9aa2 490:446e99cfd425
8 8
9 /** 9 /**
10 * Combobox for Messgroesse 10 * Combobox for Messgroesse
11 */ 11 */
12 Ext.define('Lada.view.widgets.Messgroesse' ,{ 12 Ext.define('Lada.view.widgets.Messgroesse' ,{
13 extend: 'Ext.form.ComboBox', 13 extend: 'Ext.form.ComboBox',
14 alias: 'widget.messgroesse', 14 require: ['Lada.store.StaMessgroessen'],
15 store: 'Messgroessen', 15 alias: 'widget.messgroesse',
16 displayField: 'messgroesse', 16 store: 'StaMessgroessen',
17 valueField: 'messgroesseId', 17 displayField: 'messgroesse',
18 emptyText:'Wählen Sie eine Messgröße', 18 valueField: 'id',
19 // Enable filtering of comboboxes 19 emptyText:'Wählen Sie eine Messgröße',
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 26
26 initComponent: function() { 27 initComponent: function() {
28 this.store = Ext.data.StoreManager.get('StaMessgroessen');
29 if (!this.store) {
30 this.store = Ext.create('Lada.store.StaMessgroessen');
31 }
27 this.callParent(arguments); 32 this.callParent(arguments);
28 } 33 }
29 }); 34 });

http://lada.wald.intevation.org