@cdmx/wappler_ag_grid 1.5.3 → 1.5.5
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 +6 -4
- package/package.json +1 -1
package/dmx-ag-grid.js
CHANGED
|
@@ -257,6 +257,9 @@ dmx.Component('ag-grid', {
|
|
|
257
257
|
return;
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
|
+
if (!gridInstance) {
|
|
261
|
+
return;
|
|
262
|
+
}
|
|
260
263
|
const oldRowData = [];
|
|
261
264
|
gridInstance.forEachNode(node => {
|
|
262
265
|
if (node.data) {
|
|
@@ -281,11 +284,9 @@ dmx.Component('ag-grid', {
|
|
|
281
284
|
};
|
|
282
285
|
}
|
|
283
286
|
if (gridInstance && transaction) {
|
|
284
|
-
|
|
287
|
+
gridInstance.applyTransaction(transaction);
|
|
285
288
|
// gridInstance.refreshCells();
|
|
286
|
-
}
|
|
287
|
-
return;
|
|
288
|
-
}
|
|
289
|
+
}
|
|
289
290
|
},
|
|
290
291
|
parseFileData: async function (fieldId) {
|
|
291
292
|
const parseCSV = (csvData) => {
|
|
@@ -1323,6 +1324,7 @@ dmx.Component('ag-grid', {
|
|
|
1323
1324
|
suppressPropertyNamesCheck: this.props.suppress_property_names_check,
|
|
1324
1325
|
suppressRowDeselection: this.props.suppress_row_deselection,
|
|
1325
1326
|
columnHoverHighlight: this.props.column_hover_highlight,
|
|
1327
|
+
getRowId: (params) => params.data.id,
|
|
1326
1328
|
onFilterModified: function (params) {
|
|
1327
1329
|
const columnApi = params.columnApi.api;
|
|
1328
1330
|
columnApi.hideOverlay();
|