Does anyone know how to enable PDF export functionality in Datatables

Asked

Viewed 123 times

1

I’m using the js Datatables plugin but don’t know how to activate the export functionality to PDF or Excel. Can anyone help me?

From now on agardeço, att.

  • Sorry, no search: https://www.datatables.net/extensions/tabletools/

  • Anyone who wants to rule out

1 answer

1


Excerpt from the documentation of Tabletools of Datatables.net.

/*
 * Example initialisation
 */
$(document).ready( function () {
    $('#example').dataTable( {
        "dom": 'T<"clear">lfrtip',
        "tableTools": {
            "sSwfPath": "/swf/copy_csv_xls_pdf.swf"
        }
    } );
} );
  • 1

    Had already solved @Thiagolunardi , but thanks for the attention

  • @Mike as Voce solved?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.