Mercurial > lada > lada-client
comparison app/view/grid/PKommentar.js @ 548:d47ee7439f44
Added new js files.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 06 Mar 2015 12:43:52 +0100 |
parents | |
children | 2c8aa09402a2 |
comparison
equal
deleted
inserted
replaced
547:f172b35a3b92 | 548:d47ee7439f44 |
---|---|
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz | |
2 * Software engineering by Intevation GmbH | |
3 * | |
4 * This file is Free Software under the GNU GPL (v>=3) | |
5 * and comes with ABSOLUTELY NO WARRANTY! Check out | |
6 * the documentation coming with IMIS-Labordaten-Application for details. | |
7 */ | |
8 | |
9 /* | |
10 * Grid to list Kommentare | |
11 */ | |
12 Ext.define('Lada.view.grid.PKommentar', { | |
13 extend: 'Ext.grid.Panel', | |
14 alias: 'widget.pkommentargrid', | |
15 | |
16 requires: [ | |
17 'Ext.toolbar.Toolbar' | |
18 ], | |
19 | |
20 maxHeight: 350, | |
21 emptyText: 'Keine Kommentaregefunden.', | |
22 minHeight: 65, | |
23 viewConfig: { | |
24 deferEmptyText: false | |
25 }, | |
26 | |
27 recordId: null, | |
28 | |
29 initComponent: function() { | |
30 var rowEditing = Ext.create('Ext.grid.plugin.RowEditing', { | |
31 clicksToMoveEditor: 1, | |
32 autoCancel: false | |
33 }); | |
34 this.plugins = [rowEditing]; | |
35 this.dockedItems = [{ | |
36 xtype: 'toolbar', | |
37 dock: 'bottom', | |
38 items: ['->', { | |
39 text: 'Hinzufügen', | |
40 icon: 'resources/img/list-add.png', | |
41 action: 'add', | |
42 probeId: this.probeId | |
43 }, { | |
44 text: 'Löschen', | |
45 icon: 'resources/img/list-remove.png', | |
46 action: 'delete' | |
47 }] | |
48 }]; | |
49 this.columns = [{ | |
50 header: 'Erzeuger', | |
51 dataIndex: 'erzeuger', | |
52 editor: { | |
53 allowBlank: false | |
54 } | |
55 }, { | |
56 header: 'Datum', | |
57 dataIndex: 'datum', | |
58 editor: { | |
59 xtype: 'datefield', | |
60 allowBlank: false, | |
61 format: 'd.m.Y', | |
62 maxValue: Ext.Date.format(new Date(), 'd.m.Y') | |
63 } | |
64 }, { | |
65 header: 'Text', | |
66 dataIndex: 'text', | |
67 flex: 1, | |
68 editor: { | |
69 allowBlank: false | |
70 } | |
71 }]; | |
72 this.callParent(arguments); | |
73 } | |
74 }); |