Mercurial > lada > lada-client
annotate app/store/Messgroessen.js @ 471:dd2b468dc1c2
Added hints on installation
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Tue, 14 Jan 2014 15:45:28 +0100 |
parents | a122424f2f0f |
children | debfcc7713e3 |
rev | line source |
---|---|
337
39297b8e5ba2
Added docstring
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
260
diff
changeset
|
1 /** |
39297b8e5ba2
Added docstring
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
260
diff
changeset
|
2 * Store for Messgroessen |
39297b8e5ba2
Added docstring
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
260
diff
changeset
|
3 */ |
182
23f74ae3bb87
Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
4 Ext.define('Lada.store.Messgroessen', { |
23f74ae3bb87
Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
5 extend: 'Ext.data.Store', |
445
a122424f2f0f
Fixed typos in fields.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
337
diff
changeset
|
6 fields: ['messgroesseId', 'messgroesse'], |
260
70a1b5962930
Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
182
diff
changeset
|
7 sorters: [{ |
445
a122424f2f0f
Fixed typos in fields.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
337
diff
changeset
|
8 property: 'messgroesse', |
260
70a1b5962930
Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
182
diff
changeset
|
9 transform: function(val) { |
70a1b5962930
Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
182
diff
changeset
|
10 if (val) { |
70a1b5962930
Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
182
diff
changeset
|
11 return val.toLowerCase(); |
70a1b5962930
Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
182
diff
changeset
|
12 } else { |
70a1b5962930
Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
182
diff
changeset
|
13 return ""; |
70a1b5962930
Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
182
diff
changeset
|
14 }; |
70a1b5962930
Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
182
diff
changeset
|
15 } |
70a1b5962930
Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
182
diff
changeset
|
16 }], |
182
23f74ae3bb87
Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
17 autoLoad: true, |
23f74ae3bb87
Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
18 proxy: { |
23f74ae3bb87
Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
19 type: 'ajax', |
23f74ae3bb87
Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
20 api: { |
23f74ae3bb87
Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
21 read: 'server/rest/messgroesse' |
23f74ae3bb87
Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
22 }, |
23f74ae3bb87
Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
23 reader: { |
23f74ae3bb87
Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
24 type: 'json', |
23f74ae3bb87
Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
25 root: 'data' |
23f74ae3bb87
Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
26 } |
23f74ae3bb87
Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
27 } |
23f74ae3bb87
Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
28 }); |