columns.render function: How to conditionally add class to td?
columns.render function: How to conditionally add class to td?

Here's what I need to do:
http://live.datatables.net/jazorolo/1/edit
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Looks like
columns.createdCell
is what you want. You could also usecreatedRow
and if the data can change then you would want to userowCallback
.Kevin
Thanks Kevin - but could you give me more detail? I've never used createdCell.
Do I apply it instead of render, or as well as?
Yes, render is used for data manipulation and
columns.createdCell
, etc is used for manipulation of the HTML elements. Here is the updated example:http://live.datatables.net/jazorolo/2/edit
Kevin
That's great! Thank you very much.