Mercurial > lada > lada-client
comparison app/view/orte/List.js @ 94:21c069e2ecdb
Added Orte to the Proben edit window
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Thu, 13 Jun 2013 14:24:18 +0200 |
parents | |
children | 453985cacb39 |
comparison
equal
deleted
inserted
replaced
93:ab067fdb91b5 | 94:21c069e2ecdb |
---|---|
1 Ext.define('Lada.view.orte.List' ,{ | |
2 extend: 'Ext.grid.Panel', | |
3 alias: 'widget.ortelist', | |
4 store: 'Orte', | |
5 viewConfig: { | |
6 maxHeight: 350, | |
7 emptyText: 'Keine Orte gefunden.', | |
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 action: 'add' | |
23 }, | |
24 { | |
25 text: 'Löschen', | |
26 icon: 'gfx/minus.gif', | |
27 action: 'delete' | |
28 } | |
29 ] | |
30 } | |
31 ]; | |
32 this.columns = [ | |
33 {header: 'Typ', dataIndex: 'otyp'}, | |
34 {header: 'ID', dataIndex: 'ortId'}, | |
35 {header: 'Staat', dataIndex: ''}, | |
36 {header: 'Gem-ID', dataIndex: ''}, | |
37 {header: 'Gemeindebezeichnung', dataIndex: 'bezeichnung'}, | |
38 {header: 'Messpunkt', dataIndex: ''} | |
39 ]; | |
40 this.callParent(arguments); | |
41 } | |
42 }); | |
43 |