comparison app/view/grid/Orte.js @ 1081:5e9a674d7bb4

Added Icon-column to stammdaten grid showing RW-status.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 13 Apr 2016 18:41:47 +0200
parents e0b5e64928c9
children e4952906634d
comparison
equal deleted inserted replaced
1080:15d7b7a9e177 1081:5e9a674d7bb4
41 }); 41 });
42 this.plugins = [this.rowEditing]; 42 this.plugins = [this.rowEditing];
43 } 43 }
44 44
45 this.columns = [{ 45 this.columns = [{
46 xtype: 'actioncolumn',
47 text: 'RW',
48 dataIndex: 'readonly',
49 sortable: false,
50 width: 30,
51 getClass: function (val, meta, rec) {
52 console.log(rec.get('statusEdit'));
53 if (rec.get('readonly') === false) {
54 return 'edit';
55 }
56 return 'noedit';
57 }
58 }, {
46 header: i18n.getMsg('orte.ortId'), 59 header: i18n.getMsg('orte.ortId'),
47 dataIndex: 'ortId' 60 dataIndex: 'ortId'
48 }, { 61 }, {
49 header: i18n.getMsg('orte.nutsCode'), 62 header: i18n.getMsg('orte.nutsCode'),
50 dataIndex: 'nutsCode' 63 dataIndex: 'nutsCode'

http://lada.wald.intevation.org