Changing font color of cell contents
Changing font color of cell contents
dbren
Posts: 3Questions: 1Answers: 0
Hello. I'm trying to change the font color of contents in cell. For example if cell contents of "ready" is <= 10 change color to red.
Code example-
$(document).ready(function() {
$('#demo').html( '
' );
table = $('#example').DataTable( {
retrieve: true,
paging: true,
stateSave: true,
"data": dataSet,
"columns": [
{ "title": "State" },
{ "title": "Ready" },
{ "title": "Not Ready", "class": "center" },
{ "title": "Busy", "class": "center" },
{ "title": "Logged Out", "class": "center" },
{ "title": "Total", "class": "center" }
]
} );
} );
Thank you!!!
This discussion has been closed.
Answers
http://datatables.net/examples/advanced_init/row_callback.html
I saw this but dont know how to fit it into my code. Kind of a newb here.
Add this to your datatables config.
You'll need to define a style in your css for
I dont have a datatables config. That I know of..
I meant the in line options you defined when you invoke dataTables. Put it after your