Mercurial > lada > lada-client
annotate app/view/widgets/Statuswert.js @ 362:6a7a9267e00f
Issue56: Changed way how to set the form and window to readonly. Now all dialogs should
habe proper readonly settings. Now the Save and Cancel button are displayed as
needed.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Thu, 15 Aug 2013 14:07:35 +0200 |
parents | 596501c16560 |
children | debfcc7713e3 |
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', |
355
596501c16560
Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
352
diff
changeset
|
22 // Enable filtering of comboboxes |
596501c16560
Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
352
diff
changeset
|
23 autoSelect: false, |
596501c16560
Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
352
diff
changeset
|
24 queryMode: 'local', |
596501c16560
Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
352
diff
changeset
|
25 triggerAction : 'all', |
596501c16560
Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
352
diff
changeset
|
26 typeAhead: true, |
596501c16560
Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
352
diff
changeset
|
27 minChars: 0, |
198
808c24773713
Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
28 initComponent: function() { |
808c24773713
Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
29 this.callParent(arguments); |
808c24773713
Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
30 } |
808c24773713
Added new widget to list the available Statuswerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
31 }); |