comparison app/view/zusatzwerte/List.js @ 106:b91d5376db19

Load Zusatzwerte from server
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 18 Jun 2013 14:02:48 +0200
parents
children 189a93e31be9
comparison
equal deleted inserted replaced
105:7ad96e3d70c1 106:b91d5376db19
1 Ext.define('Lada.view.zusatzwerte.List' ,{
2 extend: 'Ext.grid.Panel',
3 alias: 'widget.zusatzwertelist',
4 store: 'Zusatzwerte',
5 viewConfig: {
6 maxHeight: 350,
7 emptyText: 'Keine Zusatzwerte 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: 'PZW-ID', dataIndex: 'pzsId'},
34 {header: 'PWZ-Größe', dataIndex: ''},
35 {header: '&lt;NWG', dataIndex: 'messwertNwg'},
36 {header: '&lt;PZW', dataIndex: 'messwertPzs'},
37 {header: 'rel. Unsich.[%]', dataIndex: 'messfehler'},
38 {header: 'Maßeinheit', dataIndex: ''}
39 ];
40 this.callParent(arguments);
41 }
42 });

http://lada.wald.intevation.org