diff app/view/proben/List.js @ 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 c684f01c0b72
children f7d40f8a6902
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},

http://lada.wald.intevation.org