Mercurial > lada > lada-client
annotate app/view/mkommentare/List.js @ 416:0814c50caa81
Set querymode to remote to only load a subset of items of the
Verwaltungseinheit store.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Wed, 09 Oct 2013 10:13:32 +0200 |
parents | d1bb925bb5f5 |
children | debfcc7713e3 |
rev | line source |
---|---|
346
b2dc95820b70
Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
207
diff
changeset
|
1 /* |
b2dc95820b70
Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
207
diff
changeset
|
2 * Grid to list Kommentare for Messunge |
b2dc95820b70
Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
207
diff
changeset
|
3 */ |
180
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
4 Ext.define('Lada.view.mkommentare.List' ,{ |
207
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
5 extend: 'Ext.grid.Panel', |
180
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
6 alias: 'widget.mkommentarelist', |
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
7 store: 'MKommentare', |
207
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
8 viewConfig: { |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
9 maxHeight: 350, |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
10 emptyText: 'Keine Kommentare gefunden.', |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
11 // minHeight and deferEmptyText are needed to be able to show the |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
12 // emptyText message. |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
13 minHeight: 35, |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
14 deferEmptyText: false |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
15 }, |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
16 probeId: null, |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
17 parentId: null, |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
18 initComponent: function() { |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
19 this.dockedItems = [ |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
20 { |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
21 xtype: 'toolbar', |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
22 dock: 'top', |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
23 items: [ |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
24 { |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
25 text: 'Hinzufügen', |
391
d1bb925bb5f5
Use the new icons in list views and status bar.
Raimund Renkert <rrenkert@intevation.de>
parents:
346
diff
changeset
|
26 icon: 'gfx/list-add.png', |
207
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
27 action: 'add', |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
28 probeId: this.probeId, |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
29 parentId: this.parentId |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
30 }, |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
31 { |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
32 text: 'Löschen', |
391
d1bb925bb5f5
Use the new icons in list views and status bar.
Raimund Renkert <rrenkert@intevation.de>
parents:
346
diff
changeset
|
33 icon: 'gfx/list-remove.png', |
207
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
34 action: 'delete' |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
35 } |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
36 ] |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
37 } |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
38 ]; |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
39 this.columns = [ |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
40 {header: 'Erzeuger', dataIndex: 'erzeuger'}, |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
41 {header: 'Datum', dataIndex: 'kdatum'}, |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
42 {header: 'Text', dataIndex: 'ktext', flex: 1} |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
43 ]; |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
44 this.callParent(arguments); |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
45 } |
180
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
46 }); |
207
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
47 |