comparison app/view/kommentare/List.js @ 53:73bc17de6ff2

Added store, view and model for kommentare. Load kommentare when opening a probe.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 28 May 2013 10:58:47 +0200
parents
children 26863a7af202
comparison
equal deleted inserted replaced
52:af418743e1f4 53:73bc17de6ff2
1 Ext.define('Lada.view.kommentare.List' ,{
2 extend: 'Ext.grid.Panel',
3 alias: 'widget.kommentarelist',
4 store: 'Kommentare',
5 viewConfig: {
6 maxHeight: 350,
7 emptyText: 'Keine Kommentaregefunden.',
8 // minHeight and deferEmptyText are needed to be able to show the
9 // emptyText message.
10 minHeight: 35,
11 deferEmptyText: false
12 },
13 initComponent: function() {
14 this.dockedItems = [
15 {
16 xtype: 'toolbar',
17 dock: 'top',
18 items: [
19 {
20 text: 'Hinzufügen',
21 icon: 'gfx/plus.gif'
22 },
23 {
24 text: 'Löschen',
25 icon: 'gfx/minus.gif'
26 }
27 ]
28 }
29 ];
30 this.columns = [
31 {header: 'Erzeuger', dataIndex: 'erzeuger'},
32 {header: 'Datum', dataIndex: 'kdatum'},
33 {header: 'Text', dataIndex: 'ktext', flex: 1}
34 ];
35 this.callParent(arguments);
36 }
37 });
38

http://lada.wald.intevation.org