cilog-lib 1.12.26 → 1.12.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/fesm2022/cilog-lib.mjs
CHANGED
|
@@ -1351,6 +1351,7 @@ const myTheme = themeQuartz
|
|
|
1351
1351
|
spacing: 10,
|
|
1352
1352
|
fontSize: 12,
|
|
1353
1353
|
headerFontSize: 14,
|
|
1354
|
+
columnBorder: { style: 'solid', color: '#DEDEDE' },
|
|
1354
1355
|
});
|
|
1355
1356
|
class CilogGridComponent {
|
|
1356
1357
|
gridApi;
|
|
@@ -1377,9 +1378,10 @@ class CilogGridComponent {
|
|
|
1377
1378
|
suppressSizeToFit: col.width != null ? true : false,
|
|
1378
1379
|
headerTooltip: col.libelle,
|
|
1379
1380
|
valueGetter: (params) => {
|
|
1380
|
-
if (!params.data || !params.data[params.colDef.field] || !params.data[params.colDef.field].value)
|
|
1381
|
-
return '';
|
|
1382
1381
|
return params.data[params.colDef.field].value;
|
|
1382
|
+
},
|
|
1383
|
+
cellStyle: (params) => {
|
|
1384
|
+
return { backgroundColor: params.data[params.colDef.field].color, color: params.data[params.colDef.field].textColor };
|
|
1383
1385
|
}
|
|
1384
1386
|
};
|
|
1385
1387
|
cols.push(colDef);
|