Mercurial > lada > lada-client
annotate app/view/widgets/Statuswert.js @ 255:82118c01bc52
#57: Open Edit-Dialog after creating a new Probe.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Wed, 24 Jul 2013 19:14:02 +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 }); |