As ColVis is deprecated in Datatables 1.10, I am looking for a way to add a checkbox to each button to select a column in the table in the same way it is done in this example that uses ColVis.
In the following JSFiddle is what I have done so far. Below is the code that I am using.
$(document).ready(function() {
var table = $('#example').DataTable( {
dom: 'B',
"buttons": [
{
extend: 'colvis',
postfixButtons: [
{
extend: 'colvisRestore',
text: 'Restore'
}
],
buttons : [{
extend: 'columnsToggle',
}],
}
],
}
); } );
I would really appreciate your share of expertise on this one.