annotate app/view/widgets/Statuswert.js @ 271:11f8a2c1b610

Added Cancel Button to all Windows. Changed order howthe form is initialized. Now the form could hide the buttuns in the parent window depending on the readonly flag.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 06 Aug 2013 16:03:38 +0200
parents 808c24773713
children 5fbcbf330839
rev   line source
198
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
1 // Combobox for Statuswerte
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
2 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
3 fields: ['id', 'status'],
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
4 data: [
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
5 {"id":1, "status":"nicht vergeben"},
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
6 {"id":2, "status":"plausibel"},
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
7 {"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
8 {"id":4, "status":"nicht plausibel"}
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
9 ]
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
10 });
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
11
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
12 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
13 extend: 'Ext.form.ComboBox',
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
14 alias: 'widget.statuswert',
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
15 store: statuswerteStore,
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
16 displayField:'status',
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
17 valueField: 'id',
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
18 typeAhead: true,
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
19 emptyText:'Wählen Sie eine Status',
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
20 initComponent: function() {
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
21 this.callParent(arguments);
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
22 }
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
23 });

http://lada.wald.intevation.org