I am using ag-grid to display stock prices. These prices get updated at real time through a feed.
- I am using
gridApi.updateRowData()
to update rows accordingly. - And
gridApi.flashCells()
to flash whenever there are updates. - I have set
enableCellChangeFlash="true"
in the html.
This setup is working fine. The rows flash when there are changes in data.
My requirement is if the incoming price is below a threshold price, i need the flash color to be red, and if its above threshold price, the flash color to be green.
How can I achieve this?