comparison app/view/proben/List.js @ 13:a8efc4b96888

Added model for Proben and a Store.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 30 Apr 2013 12:34:36 +0200
parents b8e56e880f02
children fd692dac69a2
comparison
equal deleted inserted replaced
12:cdcaf38eab45 13:a8efc4b96888
1 Ext.define('Lada.view.proben.List' ,{ 1 Ext.define('Lada.view.proben.List' ,{
2 extend: 'Ext.grid.Panel', 2 extend: 'Ext.grid.Panel',
3 alias: 'widget.probenlist', 3 alias: 'widget.probenlist',
4
5 title: 'Alle Proben', 4 title: 'Alle Proben',
5 store: 'Proben',
6 6
7 initComponent: function() { 7 initComponent: function() {
8 this.store = {
9 fields: ['name', 'email'],
10 data : [
11 {name: 'Ed', email: 'ed@sencha.com'},
12 {name: 'Tommy', email: 'tommy@sencha.com'}
13 ]
14 };
15
16 this.columns = [ 8 this.columns = [
17 {header: 'Name', dataIndex: 'name', flex: 1}, 9 {header: 'Datenbasis', dataIndex: 'datenbasisId', flex: 1},
18 {header: 'Email', dataIndex: 'email', flex: 1} 10 {header: 'ProbeID', dataIndex: 'probeId', flex: 1}
19 ]; 11 ];
20
21 this.callParent(arguments); 12 this.callParent(arguments);
22 } 13 }
23 }); 14 });

http://lada.wald.intevation.org