torsten@472: /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz torsten@472: * Software engineering by Intevation GmbH torsten@472: * torsten@472: * This file is Free Software under the GNU GPL (v>=3) torsten@472: * and comes with ABSOLUTELY NO WARRANTY! Check out raimund@497: * the documentation coming with IMIS-Labordaten-Application for details. torsten@472: */ torsten@472: torsten@342: /* torsten@342: * Grid to list Kommentare torsten@342: */ raimund@497: Ext.define('Lada.view.kommentare.List', { torsten@53: extend: 'Ext.grid.Panel', torsten@53: alias: 'widget.kommentarelist', raimund@491: raimund@498: requires: [ raimund@498: 'Ext.toolbar.Toolbar' raimund@498: ], raimund@498: raimund@490: store: 'KommentareP', torsten@53: viewConfig: { torsten@53: maxHeight: 350, torsten@53: emptyText: 'Keine Kommentaregefunden.', torsten@53: // minHeight and deferEmptyText are needed to be able to show the torsten@53: // emptyText message. raimund@530: minHeight: 65, torsten@53: deferEmptyText: false torsten@53: }, torsten@144: probeId: null, raimund@491: torsten@53: initComponent: function() { raimund@491: this.dockedItems = [{ raimund@491: xtype: 'toolbar', raimund@513: dock: 'bottom', raimund@513: items: ['->', { raimund@491: text: 'Hinzufügen', raimund@491: icon: 'gfx/list-add.png', raimund@491: action: 'add', raimund@491: probeId: this.probeId raimund@491: }, { raimund@491: text: 'Löschen', raimund@491: icon: 'gfx/list-remove.png', raimund@491: action: 'delete' raimund@491: }] raimund@491: }]; raimund@491: this.columns = [{ raimund@491: header: 'Erzeuger', raimund@491: dataIndex: 'erzeuger' raimund@491: }, { raimund@491: header: 'Datum', raimund@497: dataIndex: 'datum' raimund@491: }, { raimund@491: header: 'Text', raimund@497: dataIndex: 'text', raimund@491: flex: 1 raimund@491: }]; torsten@53: this.callParent(arguments); torsten@53: } torsten@53: });