comparison app/view/messungen/List.js @ 513:6de00657cd87

Moved alll list toolbars to bottom and buttons to the right.
author Raimund Renkert <raimund.renkert@intevation.de>
date Tue, 16 Dec 2014 13:19:18 +0100
parents 83a98b61546a
children 7a20e3054c9e
comparison
equal deleted inserted replaced
512:8818becb8cde 513:6de00657cd87
22 minHeight: 35, 22 minHeight: 35,
23 deferEmptyText: false 23 deferEmptyText: false
24 }, 24 },
25 25
26 probeId: null, 26 probeId: null,
27
28
29 27
30 initComponent: function() { 28 initComponent: function() {
31 var rowEditing = Ext.create('Ext.grid.plugin.RowEditing', { 29 var rowEditing = Ext.create('Ext.grid.plugin.RowEditing', {
32 clicksToMoveEditor: 1, 30 clicksToMoveEditor: 1,
33 autoCancel: false 31 autoCancel: false
34 }); 32 });
35
36 this.plugins = [rowEditing]; 33 this.plugins = [rowEditing];
37
38 this.dockedItems = [{ 34 this.dockedItems = [{
39 xtype: 'toolbar', 35 xtype: 'toolbar',
40 dock: 'top', 36 dock: 'bottom',
41 items: [{ 37 items: ['->', {
42 text: 'Hinzufügen', 38 text: 'Hinzufügen',
43 icon: 'gfx/list-add.png', 39 icon: 'gfx/list-add.png',
44 action: 'add', 40 action: 'add',
45 probeId: this.probeId 41 probeId: this.probeId
46 }, { 42 }, {
102 } 98 }
103 return sstore.last().get('status'); 99 return sstore.last().get('status');
104 }, 100 },
105 editor: { 101 editor: {
106 xtype: 'numberfield', 102 xtype: 'numberfield',
107 allowBlank: false, 103 allowBlank: false
108 } 104 }
109 }, { 105 }, {
110 header: 'OK-Flag', 106 header: 'OK-Flag',
111 dataIndex: 'fertig', 107 dataIndex: 'fertig',
112 width: 50, 108 width: 50,
116 } 112 }
117 return 'Nein'; 113 return 'Nein';
118 }, 114 },
119 editor: { 115 editor: {
120 xtype: 'checkboxfield', 116 xtype: 'checkboxfield',
121 allowBlank: false, 117 allowBlank: false
122 } 118 }
123 }, { 119 }, {
124 header: 'Anzahl Nuklide', 120 header: 'Anzahl Nuklide',
125 dataIndex: 'id', 121 dataIndex: 'id',
126 renderer: function(value) { 122 renderer: function(value) {

http://lada.wald.intevation.org