annotate app/view/widgets/Statuswert.js @ 506:2b5aa0e6e641

Moved min width from lada form superclass to concrete form classes.
author Raimund Renkert <raimund.renkert@intevation.de>
date Sat, 13 Dec 2014 14:09:57 +0100
parents 7c0653e8d9f7
children
rev   line source
472
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 355
diff changeset
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 355
diff changeset
2 * Software engineering by Intevation GmbH
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 355
diff changeset
3 *
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 355
diff changeset
4 * This file is Free Software under the GNU GPL (v>=3)
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 355
diff changeset
5 * and comes with ABSOLUTELY NO WARRANTY! Check out
497
7c0653e8d9f7 Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 491
diff changeset
6 * the documentation coming with IMIS-Labordaten-Application for details.
472
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 355
diff changeset
7 */
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 355
diff changeset
8
198
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
9 var statuswerteStore = Ext.create('Ext.data.Store', {
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
10 fields: ['id', 'status'],
497
7c0653e8d9f7 Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 491
diff changeset
11 data: [{
7c0653e8d9f7 Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 491
diff changeset
12 'id': 1,
7c0653e8d9f7 Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 491
diff changeset
13 'status': 'nicht vergeben'
7c0653e8d9f7 Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 491
diff changeset
14 }, {
7c0653e8d9f7 Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 491
diff changeset
15 'id': 2,
7c0653e8d9f7 Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 491
diff changeset
16 'status': 'plausibel'
7c0653e8d9f7 Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 491
diff changeset
17 }, {
7c0653e8d9f7 Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 491
diff changeset
18 'id': 3,
7c0653e8d9f7 Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 491
diff changeset
19 'status': 'nicht repräsentativ'
7c0653e8d9f7 Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 491
diff changeset
20 }, {
7c0653e8d9f7 Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 491
diff changeset
21 'id': 4,
7c0653e8d9f7 Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 491
diff changeset
22 'status': 'nicht plausibel'
7c0653e8d9f7 Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 491
diff changeset
23 }]
198
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
24 });
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
25
352
5fbcbf330839 Added documenation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 198
diff changeset
26 /**
5fbcbf330839 Added documenation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 198
diff changeset
27 * Combobox for Statuswert
5fbcbf330839 Added documenation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 198
diff changeset
28 */
497
7c0653e8d9f7 Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 491
diff changeset
29 Ext.define('Lada.view.widgets.Statuswert', {
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 481
diff changeset
30 extend: 'Ext.form.ComboBox',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 481
diff changeset
31 alias: 'widget.statuswert',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 481
diff changeset
32 store: statuswerteStore,
497
7c0653e8d9f7 Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 491
diff changeset
33 displayField: 'status',
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 481
diff changeset
34 valueField: 'id',
497
7c0653e8d9f7 Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 491
diff changeset
35 emptyText: 'Wählen Sie eine Status',
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 481
diff changeset
36 // Enable filtering of comboboxes
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 481
diff changeset
37 autoSelect: false,
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 481
diff changeset
38 queryMode: 'local',
497
7c0653e8d9f7 Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 491
diff changeset
39 triggerAction: 'all',
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 481
diff changeset
40 typeAhead: false,
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 481
diff changeset
41 minChars: 0,
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 481
diff changeset
42
198
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
43 initComponent: function() {
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
44 this.callParent(arguments);
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
45 }
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
46 });

http://lada.wald.intevation.org