comparison app/view/widget/Testdatensatz.js @ 548:d47ee7439f44

Added new js files.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 06 Mar 2015 12:43:52 +0100
parents
children 8a156a7fbe67
comparison
equal deleted inserted replaced
547:f172b35a3b92 548:d47ee7439f44
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 var testdatensatzStore = Ext.create('Ext.data.Store', {
10 fields: ['testdatensatzId', 'testdatensatz'],
11 data: [{
12 'testdatensatzId': true,
13 'testdatensatz': 'Ja'
14 }, {
15 'testdatensatzId': false,
16 'testdatensatz': 'Nein'
17 }]
18 });
19
20 /**
21 * Combobox for Testdatensatz.
22 * This widget is also used a generic "Ja/Nein" combobox.
23 */
24 Ext.define('Lada.view.widget.Testdatensatz', {
25 extend: 'Lada.view.widget.base.ComboBox',
26 editable: false,
27 alias: 'widget.testdatensatz',
28 store: testdatensatzStore,
29 queryMode: 'local',
30 displayField: 'testdatensatz',
31 valueField: 'testdatensatzId',
32 emptyText: 'Testdatensatz?',
33
34 initComponent: function() {
35 this.callParent(arguments);
36 }
37 });

http://lada.wald.intevation.org