just the essential code to activate the show/hide button for all the columns

just the essential code to activate the show/hide button for all the columns

dtalamontidtalamonti Posts: 1Questions: 0Answers: 0

Hi Allan,
Could you please,
add the code in the script below, to make works ColVis?

Thanks,
Danilo.

<!DOCTYPE html>
<head>

<link rel="stylesheet" type="text/css" href="//cdn.datatables.net/1.10.5/css/jquery.dataTables.css">



$(document).ready(function() { $('#example').dataTable( { "dom": 'C<"clear">lfrtip', "columns": [ { className: "dt-center" }, { className: "dt-center" }, { className: "dt-center" }, { className: "dt-center" }, ], } ); } );

<title>very basic example</title>
</head>

<body>

h1 h2 h3 h4
r1-c1 r1-c2 r1-c3 r1-c4
r2-c1 r2-c2 r2-c3 r2-c4
r3-c1 r3-c2 r3-c3 r3-c4

</body>
</html>

This discussion has been closed.