Mercurial > lada > lada-client
view app/view/mkommentare/List.js @ 362:6a7a9267e00f
Issue56: Changed way how to set the form and window to readonly. Now all dialogs should
habe proper readonly settings. Now the Save and Cancel button are displayed as
needed.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Thu, 15 Aug 2013 14:07:35 +0200 |
parents | b2dc95820b70 |
children | d1bb925bb5f5 |
line wrap: on
line source
/* * Grid to list Kommentare for Messunge */ Ext.define('Lada.view.mkommentare.List' ,{ extend: 'Ext.grid.Panel', alias: 'widget.mkommentarelist', store: 'MKommentare', viewConfig: { maxHeight: 350, emptyText: 'Keine Kommentare gefunden.', // minHeight and deferEmptyText are needed to be able to show the // emptyText message. minHeight: 35, deferEmptyText: false }, probeId: null, parentId: null, initComponent: function() { this.dockedItems = [ { xtype: 'toolbar', dock: 'top', items: [ { text: 'Hinzufügen', icon: 'gfx/plus.gif', action: 'add', probeId: this.probeId, parentId: this.parentId }, { text: 'Löschen', icon: 'gfx/minus.gif', action: 'delete' } ] } ]; this.columns = [ {header: 'Erzeuger', dataIndex: 'erzeuger'}, {header: 'Datum', dataIndex: 'kdatum'}, {header: 'Text', dataIndex: 'ktext', flex: 1} ]; this.callParent(arguments); } });