Can we pass column range to 'colVis' in "button" option

Can we pass column range to 'colVis' in "button" option

osamajavedosamajaved Posts: 12Questions: 6Answers: 0

Hi,
I would like to pass array of columns a user can hide and show in datatables. I am using the code as follows, but it does not show any column in "Column Visibility"
"buttons": [
{
extend: 'colvis',
columns: '0,1,2,3,4,5,6,7'
}
]

Thanks

This discussion has been closed.