Mercurial > lada > lada-client
changeset 37:e9229d79e430
Added empty text message to the probenlist.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Thu, 23 May 2013 17:32:40 +0200 |
parents | 2a67e062519b |
children | b1751458594f |
files | app/view/proben/List.js |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/app/view/proben/List.js Thu May 23 16:50:42 2013 +0200 +++ b/app/view/proben/List.js Thu May 23 17:32:40 2013 +0200 @@ -1,8 +1,15 @@ Ext.define('Lada.view.proben.List' ,{ extend: 'Ext.grid.Panel', alias: 'widget.probenlist', - maxHeight: 350, 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},