Mercurial > lada > lada-client
comparison app/view/status/List.js @ 491:850ccfe5f3c4
Code style.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 31 Oct 2014 23:23:32 +0100 |
parents | 446e99cfd425 |
children | 7c0653e8d9f7 |
comparison
equal
deleted
inserted
replaced
490:446e99cfd425 | 491:850ccfe5f3c4 |
---|---|
10 * Grid to list Status | 10 * Grid to list Status |
11 */ | 11 */ |
12 Ext.define('Lada.view.status.List' ,{ | 12 Ext.define('Lada.view.status.List' ,{ |
13 extend: 'Ext.grid.Panel', | 13 extend: 'Ext.grid.Panel', |
14 alias: 'widget.statuslist', | 14 alias: 'widget.statuslist', |
15 | |
15 store: 'Status', | 16 store: 'Status', |
16 viewConfig: { | 17 viewConfig: { |
17 maxHeight: 350, | 18 maxHeight: 350, |
18 emptyText: 'Keine Statusangaben gefunden.', | 19 emptyText: 'Keine Statusangaben gefunden.', |
19 // minHeight and deferEmptyText are needed to be able to show the | 20 // minHeight and deferEmptyText are needed to be able to show the |
20 // emptyText message. | 21 // emptyText message. |
21 minHeight: 35, | 22 minHeight: 35, |
22 deferEmptyText: false | 23 deferEmptyText: false |
23 }, | 24 }, |
25 | |
24 parentId: null, | 26 parentId: null, |
25 probeId: null, | 27 probeId: null, |
28 | |
26 initComponent: function() { | 29 initComponent: function() { |
27 this.dockedItems = [ | 30 this.dockedItems = [{ |
28 { | 31 xtype: 'toolbar', |
29 xtype: 'toolbar', | 32 dock: 'top', |
30 dock: 'top', | 33 items: [{ |
31 items: [ | 34 text: 'Hinzufügen', |
32 { | 35 icon: 'gfx/list-add.png', |
33 text: 'Hinzufügen', | 36 action: 'add', |
34 icon: 'gfx/list-add.png', | 37 probeId: this.probeId, |
35 action: 'add', | 38 parentId: this.parentId |
36 probeId: this.probeId, | 39 }, { |
37 parentId: this.parentId | 40 text: 'Löschen', |
38 }, | 41 icon: 'gfx/list-remove.png', |
39 { | 42 action: 'delete' |
40 text: 'Löschen', | 43 }] |
41 icon: 'gfx/list-remove.png', | 44 }]; |
42 action: 'delete' | 45 this.columns = [{ |
43 } | 46 header: 'Erzeuger', |
44 ] | 47 dataIndex: 'erzeuger' |
45 } | 48 }, { |
46 ]; | 49 header: 'Status', |
47 this.columns = [ | 50 dataIndex: 'status' |
48 {header: 'Erzeuger', dataIndex: 'erzeuger'}, | 51 }, { |
49 {header: 'Status', dataIndex: 'status'}, | 52 header: 'Datum', |
50 {header: 'Datum', dataIndex: 'datum'}, | 53 dataIndex: 'datum' |
51 {header: 'Text', dataIndex: 'kommentar', flex: 1} | 54 }, { |
52 ]; | 55 header: 'Text', |
56 dataIndex: 'kommentar', | |
57 flex: 1 | |
58 }]; | |
53 this.callParent(arguments); | 59 this.callParent(arguments); |
54 } | 60 } |
55 }); | 61 }); |
56 | 62 |