colvis and table tools
colvis and table tools
nachuge
Posts: 2Questions: 1Answers: 0
Hi!
How can I use both colvis and table tools?
What can I solve this problem?
This discussion has been closed.
Answers
here is my code
$(document).ready( function () { $('#tosf-eras-table').dataTable( { "sDom": 'C<"clear">lfrtip', "oColVis": { "buttonText": "Change Column", "bRestore": true, "sAlign": "right" }, "oTableTools": { "sSwfPath": "<?php bloginfo('template_directory'); ?>/js/tableTools/tableOptions.swf", "aButtons": [ {'sExtends':'xls', 'mColumns':'visible' //set which columns here }, {'sExtends':'pdf', 'mColumns':'visible' //set which columns here }, {'sExtends':'print', 'mColumns':'visible' //set which columns here }, ] } } ); });