Mercurial > lada > lada-client
annotate app/view/widgets/Messmethode.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 |
---|---|
178
c53f3110852e
Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
1 var mmtStore = Ext.create('Ext.data.Store', { |
c53f3110852e
Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
2 fields: ['mmtId', 'messmethhode'], |
260
70a1b5962930
Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
178
diff
changeset
|
3 sorters: [{ |
70a1b5962930
Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
178
diff
changeset
|
4 property: 'mmtId', |
70a1b5962930
Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
178
diff
changeset
|
5 }], |
178
c53f3110852e
Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
6 proxy: { |
c53f3110852e
Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
7 type: 'ajax', |
c53f3110852e
Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
8 api: { |
c53f3110852e
Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
9 read: 'server/rest/messmethode' |
c53f3110852e
Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
10 }, |
c53f3110852e
Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
11 reader: { |
c53f3110852e
Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
12 type: 'json', |
c53f3110852e
Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
13 root: 'data' |
c53f3110852e
Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
14 } |
c53f3110852e
Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
15 } |
c53f3110852e
Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
16 }); |
c53f3110852e
Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
17 |
352
5fbcbf330839
Added documenation
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
272
diff
changeset
|
18 /** |
5fbcbf330839
Added documenation
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
272
diff
changeset
|
19 * Combobox for Messmethode |
5fbcbf330839
Added documenation
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
272
diff
changeset
|
20 */ |
178
c53f3110852e
Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
21 Ext.define('Lada.view.widgets.Messmethode' ,{ |
272
852dc338894e
Make custom comboboxed selectable
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
261
diff
changeset
|
22 tpl: '<tpl for="."><div class="x-combo-list-item x-boundlist-item" >{mmtId} - {messmethhode}</div></tpl>', |
178
c53f3110852e
Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
23 extend: 'Ext.form.ComboBox', |
c53f3110852e
Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
24 alias: 'widget.messmethode', |
c53f3110852e
Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
25 store: mmtStore, |
c53f3110852e
Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
26 displayField:'messmethhode', |
c53f3110852e
Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
27 valueField: 'mmtId', |
c53f3110852e
Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
28 emptyText:'Wählen Sie eine Messmethode', |
355
596501c16560
Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
352
diff
changeset
|
29 // Enable filtering of comboboxes |
596501c16560
Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
352
diff
changeset
|
30 autoSelect: false, |
596501c16560
Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
352
diff
changeset
|
31 queryMode: 'local', |
596501c16560
Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
352
diff
changeset
|
32 triggerAction : 'all', |
596501c16560
Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
352
diff
changeset
|
33 typeAhead: true, |
596501c16560
Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
352
diff
changeset
|
34 minChars: 0, |
178
c53f3110852e
Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
35 initComponent: function() { |
c53f3110852e
Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
36 this.callParent(arguments); |
c53f3110852e
Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
37 } |
c53f3110852e
Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
38 }); |