Performance improvements

This commit is contained in:
Erki Aas 2022-11-08 19:40:47 +02:00
parent d5c548193d
commit 63b2fb2c20
2 changed files with 6 additions and 4 deletions

View File

@ -1,6 +1,7 @@
import ComboboxFilter from "../../Filter/ComboboxFilter";
const config = {
getRowId: params => params.data._id,
defaultColDef: {
width: 120,
initialPinned: true,

View File

@ -125,11 +125,12 @@ export default {
},
handleReceiveMessage (event) {
const eventData = parseEventData(event.data);
const res = this.gridApi.applyTransaction({
this.gridApi.applyTransactionAsync({
add: [eventData]
});
const rowNode = res.add[0]
this.gridApi.flashCells({ rowNodes: [rowNode]});
}, (res) => {
const rowNode = res.add[0]
this.gridApi.flashCells({ rowNodes: [rowNode]});
})
},
handleReceiveFilters (event) {
let data = parseEventData(event.data);