Datatables column or columndef target expected first column
Datatables column or columndef target expected first column
Wolfzmus
Posts: 1Questions: 1Answers: 0
Can i do this??
var table = $('#myTable').DataTable( {
columnDefs: [
{ targets: [>0], visible: true}
]
} );
Wich mean i need target not doin on first column but rather then first column.
NB : I'm using periode so if pick januray to May 2016, so i have 4 column.
This discussion has been closed.
Answers
No.
>0
is not valid Javascript in that context. You would need to either use class names to target the columns or list all of the column indexes.Allan