Answers for "datatables dynamically hide columns"

2

datatables dynamically hide columns

const table = $('#example').DataTable();

// Get the column API object
const column = table.column( 2 ); // gets 2nd column (0-indexed)
 
// Toggle the visibility
column.visible( ! column.visible() ); // true or false
Posted by: Guest on March-30-2021

Code answers related to "datatables dynamically hide columns"

Code answers related to "Javascript"

Browse Popular Code Answers by Language