If cell is date and is older than today change cell font color to red (or some color)
If cell is date and is older than today change cell font color to red (or some color)
Corsari
Posts: 3Questions: 2Answers: 0
Hello is it possible to achieve what in subject?
I'm showing DB records from a DB table. One of the records is an expiring date.
When displaying on datatables such records, I'd like to highlight the expired dates coloring those dates red.
Is it possible to intercept this?
Thank you
This discussion has been closed.
Answers
Hi Corsari this can be achieved using the createRow callback. https://datatables.net/reference/option/createdRow