How to change a row color from within a aoColumns?
How to change a row color from within a aoColumns?
sunbather
Posts: 8Questions: 4Answers: 0
Hello,
I defined my datatable using aoColumns. I have something like this:
[...]{
"title": "myTitle",
"mData": "myMData",
"mRender": function (data, type, val) {
if(val.myMData > 15){
//color entire row red
}
return val.myMData;
}
},[...]
I do not understand how to color the entire row from within that particular column definition.
Thanks!
This discussion has been closed.
Answers
Hi @sunbather ,
Use
createdRow
(if data static) orrowCallback
(if data likely to change) for that,Cheers,
Colin