Does anyone know with enable functionality to export PDF in DataTables

1

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.

    
asked by anonymous 06.01.2016 / 18:40

1 answer

1

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"
        }
    } );
} );
    
06.01.2016 / 19:00