annotate app/view/widgets/Statuswert.js @ 484:dfb9c0c34271

Fixed INSTALL doc.
author Raimund Renkert <rrenkert@intevation.de>
date Mon, 24 Feb 2014 13:22:12 +0100
parents e45f4df57938
children 850ccfe5f3c4
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
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 355
diff changeset
6 * the documentation coming with IMIS-Labordaten-Application for details.
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'],
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
11 data: [
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
12 {"id":1, "status":"nicht vergeben"},
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
13 {"id":2, "status":"plausibel"},
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
14 {"id":3, "status":"nicht repräsentativ"},
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
15 {"id":4, "status":"nicht plausibel"}
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
16 ]
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
17 });
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
18
352
5fbcbf330839 Added documenation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 198
diff changeset
19 /**
5fbcbf330839 Added documenation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 198
diff changeset
20 * Combobox for Statuswert
5fbcbf330839 Added documenation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 198
diff changeset
21 */
198
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
22 Ext.define('Lada.view.widgets.Statuswert' ,{
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
23 extend: 'Ext.form.ComboBox',
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
24 alias: 'widget.statuswert',
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
25 store: statuswerteStore,
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
26 displayField:'status',
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
27 valueField: 'id',
481
e45f4df57938 Set typeAhead to false. Causes errors.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 472
diff changeset
28 typeAhead: false,
198
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
29 emptyText:'Wählen Sie eine Status',
355
596501c16560 Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 352
diff changeset
30 // Enable filtering of comboboxes
596501c16560 Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 352
diff changeset
31 autoSelect: false,
596501c16560 Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 352
diff changeset
32 queryMode: 'local',
596501c16560 Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 352
diff changeset
33 triggerAction : 'all',
481
e45f4df57938 Set typeAhead to false. Causes errors.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 472
diff changeset
34 typeAhead: false,
355
596501c16560 Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 352
diff changeset
35 minChars: 0,
198
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
36 initComponent: function() {
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
37 this.callParent(arguments);
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
38 }
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
39 });

http://lada.wald.intevation.org