Created
August 1, 2018 03:33
-
-
Save masatokawano/2047ce6877ec2ef42dc8fc399ae16fd3 to your computer and use it in GitHub Desktop.
change column data font color on datatables
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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