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

polachanpolachan Posts: 101Questions: 50Answers: 0
edited October 2019 in Free community support

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

Answers

This discussion has been closed.