comparison app/view/widget/Status.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 15d7b7a9e177
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 statuswerteStore = Ext.create('Ext.data.Store', {
10 fields: ['id', 'status'],
11 data: [{
12 'id': 1,
13 'status': 'nicht vergeben'
14 }, {
15 'id': 2,
16 'status': 'plausibel'
17 }, {
18 'id': 3,
19 'status': 'nicht repräsentativ'
20 }, {
21 'id': 4,
22 'status': 'nicht plausibel'
23 }]
24 });
25
26 /**
27 * Combobox for Statuswert
28 */
29 Ext.define('Lada.view.widget.Status', {
30 extend: 'Lada.view.widget.base.ComboBox',
31 alias: 'widget.statuswert',
32 store: statuswerteStore,
33 displayField: 'status',
34 valueField: 'id',
35 emptyText: 'Wählen Sie eine Status',
36 // Enable filtering of comboboxes
37 autoSelect: false,
38 queryMode: 'local',
39 triggerAction: 'all',
40 typeAhead: false,
41 minChars: 0,
42
43 initComponent: function() {
44 this.callParent(arguments);
45 }
46 });

http://lada.wald.intevation.org