How to give conditionally column definition for a column, Please can you give any help
How to give conditionally column definition for a column, Please can you give any help

how can I give columnDefs conditionally
for example
var option='Leavers'
if options = 'Leavers' then I have to hide the column 2 else I have to hide the column 3 .
all the cases all column definition "className": "dt-center", "targets": "_all"
Please any help would be very appreciated
Regards
Pol
This discussion has been closed.
Answers
Something like this:
You can see it here:
http://live.datatables.net/lomepowa/1/edit
Kevin