Show the colvis button, but do not include the 1st,3rd in colvis menu
Show the colvis button, but do not include the 1st,3rd in colvis menu
![sarath_datatables](https://secure.gravatar.com/avatar/4e52789a5b750471a7b7eb46fba73943/?default=https%3A%2F%2Fvanillicon.com%2F4e52789a5b750471a7b7eb46fba73943_200.png&rating=g&size=120)
implemented colvis button and tried to customize the options visibility:
followed from https://datatables.net/reference/button/colvis#Examples
Would like to hide the first and third with following code.But it is hiding all 1,2,3 coumns in the colvis menu.Is there any way to hide only 1 and 3 but not the 2nd column and show 4th to all remaining columns?
dom: 'Blfrtip',
buttons: [{
extend: 'colvis',
columns: ':gt(0):gt(1)',
text: 'Column Visibility',
titleAttr: 'By clicking on a field you could hide or show some extra columns in the table.'
}],
This discussion has been closed.