annotate app/view/widgets/Netzbetreiber.js @ 360:302db31ac50a

Fixed syntax
author Torsten Irländer <torsten.irlaender@intevation.de>
date Thu, 15 Aug 2013 14:04:25 +0200
parents 596501c16560
children cdef828f8049
rev   line source
121
c05fda928b82 Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 91
diff changeset
1 var netzbetreiberStore = Ext.create('Ext.data.Store', {
c05fda928b82 Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 91
diff changeset
2 fields: ['netzbetreiberId', 'netzbetreiber'],
260
70a1b5962930 Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 121
diff changeset
3 sorters: [{
70a1b5962930 Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 121
diff changeset
4 property: 'netzbetreiber',
70a1b5962930 Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 121
diff changeset
5 }],
121
c05fda928b82 Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 91
diff changeset
6 proxy: {
c05fda928b82 Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 91
diff changeset
7 type: 'ajax',
c05fda928b82 Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 91
diff changeset
8 api: {
c05fda928b82 Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 91
diff changeset
9 read: 'server/rest/netzbetreiber'
c05fda928b82 Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 91
diff changeset
10 },
c05fda928b82 Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 91
diff changeset
11 reader: {
c05fda928b82 Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 91
diff changeset
12 type: 'json',
c05fda928b82 Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 91
diff changeset
13 root: 'data'
c05fda928b82 Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 91
diff changeset
14 }
c05fda928b82 Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 91
diff changeset
15 }
c05fda928b82 Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 91
diff changeset
16 });
c05fda928b82 Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 91
diff changeset
17
352
5fbcbf330839 Added documenation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 260
diff changeset
18 /**
5fbcbf330839 Added documenation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 260
diff changeset
19 * Combobox for Netzbetreiber
5fbcbf330839 Added documenation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 260
diff changeset
20 */
91
95b08b96f5c9 Added new widget for the netzbetreiber.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
21 Ext.define('Lada.view.widgets.Netzbetreiber' ,{
95b08b96f5c9 Added new widget for the netzbetreiber.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
22 extend: 'Ext.form.ComboBox',
95b08b96f5c9 Added new widget for the netzbetreiber.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
23 alias: 'widget.netzbetreiber',
121
c05fda928b82 Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 91
diff changeset
24 store: netzbetreiberStore,
91
95b08b96f5c9 Added new widget for the netzbetreiber.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
25 displayField:'netzbetreiber',
95b08b96f5c9 Added new widget for the netzbetreiber.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
26 valueField: 'netzbetreiberId',
95b08b96f5c9 Added new widget for the netzbetreiber.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
27 emptyText:'Wählen Sie einen Netzbetreiber',
355
596501c16560 Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 352
diff changeset
28 // Enable filtering of comboboxes
596501c16560 Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 352
diff changeset
29 autoSelect: false,
596501c16560 Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 352
diff changeset
30 queryMode: 'local',
596501c16560 Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 352
diff changeset
31 triggerAction : 'all',
596501c16560 Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 352
diff changeset
32 typeAhead: true,
596501c16560 Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 352
diff changeset
33 minChars: 0,
91
95b08b96f5c9 Added new widget for the netzbetreiber.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
34 initComponent: function() {
95b08b96f5c9 Added new widget for the netzbetreiber.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
35 this.callParent(arguments);
95b08b96f5c9 Added new widget for the netzbetreiber.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
36 }
95b08b96f5c9 Added new widget for the netzbetreiber.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
37 });
95b08b96f5c9 Added new widget for the netzbetreiber.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
38

http://lada.wald.intevation.org