I'm using the js DataTables plugin but I'm not sure how to enable the export functionality for PDF or Excel. Can anyone help me?
As of now, thanks.
I'm using the js DataTables plugin but I'm not sure how to enable the export functionality for PDF or Excel. Can anyone help me?
As of now, thanks.
Excerpt from DataTables.net's TableTools documentation.
/*
* Example initialisation
*/
$(document).ready( function () {
$('#example').dataTable( {
"dom": 'T<"clear">lfrtip',
"tableTools": {
"sSwfPath": "/swf/copy_csv_xls_pdf.swf"
}
} );
} );