Performance improvements
This commit is contained in:
parent
d5c548193d
commit
63b2fb2c20
@ -1,6 +1,7 @@
|
|||||||
import ComboboxFilter from "../../Filter/ComboboxFilter";
|
import ComboboxFilter from "../../Filter/ComboboxFilter";
|
||||||
|
|
||||||
const config = {
|
const config = {
|
||||||
|
getRowId: params => params.data._id,
|
||||||
defaultColDef: {
|
defaultColDef: {
|
||||||
width: 120,
|
width: 120,
|
||||||
initialPinned: true,
|
initialPinned: true,
|
||||||
|
@ -125,11 +125,12 @@ export default {
|
|||||||
},
|
},
|
||||||
handleReceiveMessage (event) {
|
handleReceiveMessage (event) {
|
||||||
const eventData = parseEventData(event.data);
|
const eventData = parseEventData(event.data);
|
||||||
const res = this.gridApi.applyTransaction({
|
this.gridApi.applyTransactionAsync({
|
||||||
add: [eventData]
|
add: [eventData]
|
||||||
});
|
}, (res) => {
|
||||||
const rowNode = res.add[0]
|
const rowNode = res.add[0]
|
||||||
this.gridApi.flashCells({ rowNodes: [rowNode]});
|
this.gridApi.flashCells({ rowNodes: [rowNode]});
|
||||||
|
})
|
||||||
},
|
},
|
||||||
handleReceiveFilters (event) {
|
handleReceiveFilters (event) {
|
||||||
let data = parseEventData(event.data);
|
let data = parseEventData(event.data);
|
||||||
|
Loading…
Reference in New Issue
Block a user