@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.
Files changed (2) hide show
  1. package/dmx-ag-grid.js +10 -3
  2. 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
- gridConfig.onFilterChanged = function (e) {
1836
- totalRow(e.api, columnsToSum, columnsToCount);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdmx/wappler_ag_grid",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "type": "module",
5
5
  "description": "App Connect module for AG Grid v34 - Advanced data grid with enhanced editing, filtering, and tree data capabilities.",
6
6
  "license": "MIT",