@cdmx/wappler_ag_grid 2.0.1 → 2.0.2
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 -3
- package/package.json +1 -1
package/dmx-ag-grid.js
CHANGED
|
@@ -1832,9 +1832,16 @@ dmx.Component('ag-grid', {
|
|
|
1832
1832
|
let columnsToSum = options.columns_to_sum ? options.columns_to_sum.split(',') : [];
|
|
1833
1833
|
let columnsToCount = options.columns_to_count;
|
|
1834
1834
|
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1835
|
+
|
|
1836
|
+
const originalOnFilterChanged = gridConfig.onFilterChanged;
|
|
1837
|
+
gridConfig.onFilterChanged = function (e) {
|
|
1838
|
+
|
|
1839
|
+
totalRow(e.api, columnsToSum, columnsToCount);
|
|
1840
|
+
|
|
1841
|
+
if (originalOnFilterChanged) {
|
|
1842
|
+
originalOnFilterChanged(e);
|
|
1843
|
+
}
|
|
1844
|
+
};
|
|
1838
1845
|
gridConfig.onFirstDataRendered = function (e) {
|
|
1839
1846
|
totalRow(e.api, columnsToSum, columnsToCount);
|
|
1840
1847
|
};
|
package/package.json
CHANGED