Datatables column or columndef target expected first column

Datatables column or columndef target expected first column

WolfzmusWolfzmus 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.

Answers

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin

    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

This discussion has been closed.