I just used AG-grid in our React project and I just changed the data structure of rowData like below:
const data = [
{
tail: '1M',
live_1Y1Y: {
value: 3.0,
target: 'live_1Y1Y_1M'
}
}
];
and my colDefs is:
[
{
headerName: 'TAIL',
field: 'tail',
width: 100
},
{
headerName: '1Y1Y',
field: 'live_1Y1Y',
valueGetter: function (params) {
return params.data[params.colDef.field]['value'];
}
}
]
When the value: 3.0 is changed, I can't see any update on the page. I also set the
deltaRowDataMode={true}
getRowNodeId={data => data.id}
but it still does not work.