colvis and table tools

colvis and table tools

nachugenachuge Posts: 2Questions: 1Answers: 0

Hi!
How can I use both colvis and table tools?
What can I solve this problem?

Answers

  • nachugenachuge Posts: 2Questions: 1Answers: 0

    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 }, ] } } ); });
This discussion has been closed.