Mercurial > lada > lada-client
diff app/view/proben/List.js @ 4:b8e56e880f02
Added a first example view (userlisting) from the EXJS Tutorial. Need to be
adapted.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Mon, 29 Apr 2013 14:45:16 +0200 |
parents | |
children | a8efc4b96888 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/view/proben/List.js Mon Apr 29 14:45:16 2013 +0200 @@ -0,0 +1,23 @@ +Ext.define('Lada.view.proben.List' ,{ + extend: 'Ext.grid.Panel', + alias: 'widget.probenlist', + + title: 'Alle Proben', + + initComponent: function() { + this.store = { + fields: ['name', 'email'], + data : [ + {name: 'Ed', email: 'ed@sencha.com'}, + {name: 'Tommy', email: 'tommy@sencha.com'} + ] + }; + + this.columns = [ + {header: 'Name', dataIndex: 'name', flex: 1}, + {header: 'Email', dataIndex: 'email', flex: 1} + ]; + + this.callParent(arguments); + } +});