Mercurial > lada > lada-client
comparison app/view/widget/base/FavColumn.js @ 1015:af9879d72310
Updated UI, added window for filter management and added fieldset for query
details.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Tue, 02 Feb 2016 15:25:16 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1010:94a6b5415d73 | 1015:af9879d72310 |
---|---|
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 Ext.define('Lada.view.widget.base.FavColumn', { | |
10 extend: 'Ext.grid.column.CheckColumn', | |
11 alias: 'widget.favcolumn', | |
12 /* | |
13 constructor: function() { | |
14 this.addEvents( | |
15 'checkchange' | |
16 ); | |
17 this.callParent(arguments); | |
18 }, | |
19 */ | |
20 renderer: function(value, metaData, record) { | |
21 var cssPrefix = Ext.baseCSSPrefix; | |
22 var cls = [cssPrefix + 'grid-checkheader']; | |
23 if (value) { | |
24 cls.push(cssPrefix + 'grid-favcolumn-checked'); | |
25 } | |
26 else { | |
27 cls.push(cssPrefix + 'grid-favcolumn-unchecked'); | |
28 } | |
29 return '<div class="' + cls.join(' ') + '"> </div>'; | |
30 } | |
31 }); |