annotate app/view/widgets/Statuswert.js @ 352:5fbcbf330839

Added documenation
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 13 Aug 2013 11:45:14 +0200
parents 808c24773713
children 596501c16560
rev   line source
198
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
1 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
2 fields: ['id', 'status'],
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
3 data: [
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
4 {"id":1, "status":"nicht vergeben"},
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
5 {"id":2, "status":"plausibel"},
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
6 {"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
7 {"id":4, "status":"nicht plausibel"}
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
8 ]
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
352
5fbcbf330839 Added documenation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 198
diff changeset
11 /**
5fbcbf330839 Added documenation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 198
diff changeset
12 * Combobox for Statuswert
5fbcbf330839 Added documenation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 198
diff changeset
13 */
198
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
14 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
15 extend: 'Ext.form.ComboBox',
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
16 alias: 'widget.statuswert',
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
17 store: statuswerteStore,
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
18 displayField:'status',
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
19 valueField: 'id',
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
20 typeAhead: true,
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
21 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
22 initComponent: function() {
808c24773713 Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
23 this.callParent(arguments);
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 });

http://lada.wald.intevation.org