Mercurial > lada > lada-client
view app/view/proben/List.js @ 47:e6d5177a9f6f
Set size of the edit window relative to the available space in the browser.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Mon, 27 May 2013 09:53:03 +0200 |
parents | e9229d79e430 |
children | f7d40f8a6902 |
line wrap: on
line source
Ext.define('Lada.view.proben.List' ,{ extend: 'Ext.grid.Panel', alias: 'widget.probenlist', store: 'Proben', viewConfig: { maxHeight: 350, emptyText: 'Keine Proben gefunden.', // minHeight and deferEmptyText are needed to be able to show the // emptyText message. minHeight: 35, deferEmptyText: false }, initComponent: function() { this.columns = [ {header: 'Datenbasis', dataIndex: 'datenbasisId', width: 70}, {header: 'MPL', dataIndex: 'mplId', width: 50}, {header: 'UWB', dataIndex: 'umwId', width: 50}, {header: 'HPNR', dataIndex: 'hauptprobenNr'}, {header: 'E.Gemeinde', dataIndex: '', flex: 1}, {header: 'Ursprungsgemeinde', dataIndex: '', flex: 1}, {header: 'ProbeID', dataIndex: 'probeId'}, {header: 'OZB', dataIndex: '', width: 50}, {header: 'MST', dataIndex: 'mstId', width: 50} ]; this.callParent(arguments); } });