Skip to content

Instantly share code, notes, and snippets.

@masatokawano
Created August 1, 2018 03:33
Show Gist options
  • Save masatokawano/2047ce6877ec2ef42dc8fc399ae16fd3 to your computer and use it in GitHub Desktop.
Save masatokawano/2047ce6877ec2ef42dc8fc399ae16fd3 to your computer and use it in GitHub Desktop.
change column data font color on datatables
ready = ->
table = $('#computers').dataTable({
"columnDefs": [ {
"targets": [ 3 ],
"createdCell": (td, cellData, rowData, row, col) ->
$(td).css 'color', 'red'
} ]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment