Mercurial > lada > lada-client
comparison app/view/zusatzwerte/List.js @ 123:d78bb4ca6089
Enabled accessing nested data in the grid through a renderer.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Fri, 21 Jun 2013 17:41:16 +0200 |
parents | 189a93e31be9 |
children | 324b11db4323 |
comparison
equal
deleted
inserted
replaced
122:a7bfaeb1655d | 123:d78bb4ca6089 |
---|---|
28 } | 28 } |
29 ] | 29 ] |
30 } | 30 } |
31 ]; | 31 ]; |
32 this.columns = [ | 32 this.columns = [ |
33 {header: 'PZW-ID', dataIndex: 'sprobenZusatz_pzsId'}, | 33 { |
34 {header: 'PZW-Größe', dataIndex: 'sprobenZusatz_beschreibung', flex: 1}, | 34 header: 'PZW-ID', |
35 dataIndex: 'sprobenZusatz', | |
36 renderer: function(value) { | |
37 return value.pzsId; | |
38 } | |
39 }, | |
40 { | |
41 header: 'PZW-Größe', | |
42 dataIndex: 'sprobenZusatz', | |
43 renderer: function(value) { | |
44 return value.beschreibung; | |
45 }, | |
46 flex: 1 | |
47 }, | |
35 {header: 'Messwert', dataIndex: 'messwertPzs'}, | 48 {header: 'Messwert', dataIndex: 'messwertPzs'}, |
36 {header: 'rel. Unsich.[%]', dataIndex: 'messfehler'}, | 49 {header: 'rel. Unsich.[%]', dataIndex: 'messfehler'}, |
37 {header: 'Maßeinheit', dataIndex: 'sprobenZusatz_mehId'} | 50 { |
51 header: 'Maßeinheit', | |
52 dataIndex: 'sprobenZusatz', | |
53 renderer: function(value) { | |
54 return value.mehId; | |
55 } | |
56 } | |
38 ]; | 57 ]; |
39 this.callParent(arguments); | 58 this.callParent(arguments); |
40 } | 59 } |
41 }); | 60 }); |