how to set dynamically searchable to true or false in columndefs

how to set dynamically searchable to true or false in columndefs

rajesh123rajesh123 Posts: 3Questions: 2Answers: 0

i was trying dynamically set "searchable" to true to a specific column inside a custom filter function.

Will the below line work ?

table.column('columnIndex').searchable(true);

please advise how to set to ture dynamically based on some condition. or any other idea , please guide me. am stuck here.

Thanks in advance.

This discussion has been closed.