@trudb/tru-common-lib 0.2.2 → 0.2.4
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.
|
@@ -7515,14 +7515,15 @@ class TruDataGrid {
|
|
|
7515
7515
|
};
|
|
7516
7516
|
onRemove = () => {
|
|
7517
7517
|
let selectedRows = this.api.getSelectedRows();
|
|
7518
|
-
|
|
7518
|
+
let filteredRows = [];
|
|
7519
7519
|
this.api.forEachNodeAfterFilter(node => {
|
|
7520
|
-
|
|
7520
|
+
filteredRows.push(node.data);
|
|
7521
7521
|
});
|
|
7522
|
-
if (
|
|
7523
|
-
this.rowData =
|
|
7522
|
+
if (filteredRows.length)
|
|
7523
|
+
this.rowData = filteredRows;
|
|
7524
7524
|
else
|
|
7525
7525
|
this.rowData = [];
|
|
7526
|
+
this.api.applyTransaction({ remove: selectedRows });
|
|
7526
7527
|
};
|
|
7527
7528
|
onExport = () => {
|
|
7528
7529
|
this.exportData();
|