@cdmx/wappler_ag_grid 1.9.17 → 1.9.18
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/dmx-ag-grid.js +10 -6
- package/package.json +1 -1
package/dmx-ag-grid.js
CHANGED
|
@@ -1288,16 +1288,20 @@ dmx.Component('ag-grid', {
|
|
|
1288
1288
|
const matchingJsChange = options.js_data_changes.find(change => change.field === key);
|
|
1289
1289
|
if (matchingJsChange) {
|
|
1290
1290
|
cellRenderer = function (params) {
|
|
1291
|
-
|
|
1291
|
+
// Don't apply custom renderer to pinned bottom rows (totals)
|
|
1292
|
+
if (params.node && params.node.rowPinned === 'bottom') {
|
|
1293
|
+
return "-";
|
|
1294
|
+
}
|
|
1295
|
+
if (typeof window[matchingJsChange.function] === 'function') {
|
|
1292
1296
|
const cellValue = window[matchingJsChange.function](params.data);
|
|
1293
1297
|
return cellValue;
|
|
1294
1298
|
}
|
|
1299
|
+
}
|
|
1300
|
+
}
|
|
1301
|
+
else {
|
|
1302
|
+
cellRenderer = undefined;
|
|
1303
|
+
colId = undefined;
|
|
1295
1304
|
}
|
|
1296
|
-
}
|
|
1297
|
-
else {
|
|
1298
|
-
cellRenderer = undefined;
|
|
1299
|
-
colId = undefined;
|
|
1300
|
-
}
|
|
1301
1305
|
}
|
|
1302
1306
|
else {
|
|
1303
1307
|
cellRenderer = undefined;
|