Mercurial > lada > lada-client
comparison app/view/mkommentare/List.js @ 524:8972f008dfb1
Make tables editable for 'MKommentare'
See LSB 3.5
author | Roland Geider <roland.geider@intevation.de> |
---|---|
date | Tue, 16 Dec 2014 16:20:42 +0100 |
parents | 6de00657cd87 |
children | 95bad130be98 |
comparison
equal
deleted
inserted
replaced
523:6ad453afbc31 | 524:8972f008dfb1 |
---|---|
25 | 25 |
26 probeId: null, | 26 probeId: null, |
27 parentId: null, | 27 parentId: null, |
28 | 28 |
29 initComponent: function() { | 29 initComponent: function() { |
30 var rowEditing = Ext.create('Ext.grid.plugin.RowEditing', { | |
31 clicksToMoveEditor: 1, | |
32 autoCancel: false | |
33 }); | |
34 | |
35 this.plugins = [rowEditing]; | |
36 | |
30 this.dockedItems = [{ | 37 this.dockedItems = [{ |
31 xtype: 'toolbar', | 38 xtype: 'toolbar', |
32 dock: 'bottom', | 39 dock: 'bottom', |
33 items: ['->', { | 40 items: ['->', { |
34 text: 'Hinzufügen', | 41 text: 'Hinzufügen', |
42 action: 'delete' | 49 action: 'delete' |
43 }] | 50 }] |
44 }]; | 51 }]; |
45 this.columns = [{ | 52 this.columns = [{ |
46 header: 'Erzeuger', | 53 header: 'Erzeuger', |
47 dataIndex: 'erzeuger' | 54 dataIndex: 'erzeuger', |
55 editor: { | |
56 allowBlank: false | |
57 } | |
48 }, { | 58 }, { |
49 header: 'Datum', | 59 header: 'Datum', |
50 dataIndex: 'datum' | 60 dataIndex: 'datum', |
61 editor: { | |
62 xtype: 'datefield', | |
63 allowBlank: false, | |
64 format: 'd.m.Y', | |
65 maxValue: Ext.Date.format(new Date(), 'd.m.Y') | |
66 } | |
51 }, { | 67 }, { |
52 header: 'Text', | 68 header: 'Text', |
53 dataIndex: 'text', | 69 dataIndex: 'text', |
54 flex: 1 | 70 flex: 1, |
71 editor: { | |
72 allowBlank: false | |
73 } | |
55 }]; | 74 }]; |
56 this.callParent(arguments); | 75 this.callParent(arguments); |
57 } | 76 } |
58 }); | 77 }); |