@cdmx/wappler_ag_grid 2.0.0 → 2.0.1
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 +23 -8
- package/package.json +1 -1
package/dmx-ag-grid.js
CHANGED
|
@@ -1614,11 +1614,26 @@ dmx.Component('ag-grid', {
|
|
|
1614
1614
|
columnHoverHighlight: this.props.column_hover_highlight,
|
|
1615
1615
|
onFilterModified: function (params) {
|
|
1616
1616
|
const columnApi = params.api;
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1617
|
+
const rowCount = columnApi.getDisplayedRowCount();
|
|
1618
|
+
|
|
1619
|
+
if (rowCount > 0) {
|
|
1620
|
+
columnApi.hideOverlay();
|
|
1621
|
+
} else {
|
|
1622
|
+
columnApi.showNoRowsOverlay();
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1625
|
+
},
|
|
1626
|
+
onFilterChanged: function (params) {
|
|
1627
|
+
const columnApi = params.api;
|
|
1628
|
+
setTimeout(() => {
|
|
1629
|
+
const rowCount = columnApi.getDisplayedRowCount();
|
|
1630
|
+
|
|
1631
|
+
if (rowCount > 0) {
|
|
1632
|
+
columnApi.hideOverlay();
|
|
1633
|
+
} else {
|
|
1634
|
+
columnApi.showNoRowsOverlay();
|
|
1635
|
+
}
|
|
1636
|
+
}, 100);
|
|
1622
1637
|
},
|
|
1623
1638
|
onGridReady: (params) => {
|
|
1624
1639
|
const columnApi = params.api;
|
|
@@ -1817,9 +1832,9 @@ dmx.Component('ag-grid', {
|
|
|
1817
1832
|
let columnsToSum = options.columns_to_sum ? options.columns_to_sum.split(',') : [];
|
|
1818
1833
|
let columnsToCount = options.columns_to_count;
|
|
1819
1834
|
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1835
|
+
gridConfig.onFilterChanged = function (e) {
|
|
1836
|
+
totalRow(e.api, columnsToSum, columnsToCount);
|
|
1837
|
+
};
|
|
1823
1838
|
gridConfig.onFirstDataRendered = function (e) {
|
|
1824
1839
|
totalRow(e.api, columnsToSum, columnsToCount);
|
|
1825
1840
|
};
|
package/package.json
CHANGED