javascript - Colvis don't work for datatable with yadcf -
i don't understand why colvis don't work table.
include these css , js:
<link rel="stylesheet" type="text/css" href="https://datatables.net/release-datatables/extensions/colvis/css/datatables.colvis.css"> <script src="https://datatables.net/release-datatables/extensions/colvis/js/datatables.colvis.js"></script>
and initialisation
dom: 'c<"clear">lfrtip'
so code this:
otable = $('#example').datatable({ dom: 'c<"clear">lfrtip', "bjqueryui": true, "bstatesave": true }).yadcf([{
but solution don't work table because colvis doesn't appear , destroy other css/layout of table.
here table: my table
you need read datatables docs , understand difference between 1.9 hungarian notation syntax , camelcase of 1.10
replace dom: 'c<"clear">lfrtip',
"sdom": 'c<"clear">lfrtip',
and include colvis css/js in jsfiddle
here working jsfiddle
Comments
Post a Comment