Change Cell color when value update without destroying table
Change Cell color when value update without destroying table
Uzairkhan92
Posts: 36Questions: 10Answers: 0
in General
Hi,
I want to update the cell background color when the value change runtime in Datatable.
Below is an example of my desired requirement.
https://www.tradingview.com/widget/forex-cross-rates/
https://www.investing.com/webmaster-tools/live-currency-cross-rates
Above URL for example
Kindly let me know the solution asap.
Answers
You can use
rowCallback
to update the colors each time the table is drawn.Kevin
Can you please send me an example or demo?
This example uses
createdRow
. You can do the same withrowCallback
. You will wantrowCallback
if you data can change.Kevin