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