comparison app/view/widgets/Ortdetail.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 Ortdetails 10 * Combobox for Ortdetails
11 */ 11 */
12 Ext.define('Lada.view.widgets.Ortdetail' ,{ 12 Ext.define('Lada.view.widgets.Ortdetail' ,{
13 extend: 'Ext.form.ComboBox', 13 extend: 'Ext.form.ComboBox',
14 alias: 'widget.ortdetail', 14 require: ['Lada.store.StaOrte'],
15 store: 'Ortedetails', 15 alias: 'widget.ortdetail',
16 displayField: 'bezeichnung', 16 store: 'StaOrte',
17 valueField: 'ortId', 17 displayField: 'bezeichnung',
18 emptyText:'Wählen Sie einen Ort', 18 valueField: 'id',
19 // Enable filtering of comboboxes 19 emptyText:'Wählen Sie einen Ort',
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('StaOrte');
28 if (!this.store) {
29 this.store = Ext.create('Lada.store.StaOrte');
30 }
26 this.callParent(arguments); 31 this.callParent(arguments);
27 } 32 }
28 }); 33 });

http://lada.wald.intevation.org