I am trying to work with columndefs to add custom colors to a column. But i started with a simple scenario just to get columndefs to work. But i am unable to do so.
This is my CoffeeScript file.
jQuery ->
$('#clients').dataTable
columns: [
targets: [0]
visible: false
]
sAjaxSource: $('#clients').data('source')
I have a ROR application. i am using jquery-datatables-rails gem version: 2.2.3 https://github.com/rweng/jquery-datatables-rails which installs the latest version of datatables - 1.10.
I am not sure why i am unable to set visibility for column zero to be false.