comparison app/view/widget/KoordinatenArt.js @ 1316:f772e70ff723

Added model/store/widget for new stammdaten ort attributes.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 03 Feb 2017 13:16:53 +0100
parents
children 39dbdfa00c91
comparison
equal deleted inserted replaced
1315:d312e514875c 1316:f772e70ff723
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
2 * Software engineering by Intevation GmbH
3 *
4 * This file is Free Software under the GNU GPL (v>=3)
5 * and comes with ABSOLUTELY NO WARRANTY! Check out
6 * the documentation coming with IMIS-Labordaten-Application for details.
7 */
8
9 /**
10 * Combobox for Datenbasis
11 */
12 Ext.define('Lada.view.widget.KoordinatenArt', {
13 extend: 'Lada.view.widget.base.ComboBox',
14 alias: 'widget.koordinatenart',
15 store: 'KoordinatenArt',
16 displayField: 'id',
17 valueField: 'id',
18 // Enable filtering of comboboxes
19 queryMode: 'local',
20 triggerAction: 'all',
21 typeAhead: false,
22 tpl: Ext.create("Ext.XTemplate",
23 '<tpl for="."><div class="x-combo-list-item x-boundlist-item" >' +
24 '{idfGeoKey} - {koordinatenart}</div></tpl>'),
25 displayTpl: Ext.create('Ext.XTemplate',
26 '<tpl for=".">{idfGeoKey} - {koordinatenart}</tpl>'),
27
28 initComponent: function() {
29 var i18n = Lada.getApplication().bundle;
30 this.emptyText = i18n.getMsg('emptytext.koordinatenart');
31
32 this.store = Ext.data.StoreManager.get('koordinatenart');
33 if (!this.store) {
34 this.store = Ext.create('Lada.store.KoordinatenArt');
35 }
36 else {
37 this.store.clearFilter();
38 }
39 this.callParent(arguments);
40 }
41 });

http://lada.wald.intevation.org