Ajax Datatable: changing row color based on the data

We have the following table which is populated with data, using Ajax

A regular table without color

Now, let’s say you want to color the table rows, based on the second column status after, the table is already filled with data:

  • UNSTABLE -> Yellow
  • SUCCESS -> Green
  • Failure -> Red
Continue reading “Ajax Datatable: changing row color based on the data”