Print a custom PDF using DataTables filters
Print a custom PDF using DataTables filters
I am looking at using the DataTable filters (sorting, pagination, search) and persisting when printing our own PDF.
We currently set the data in a variable which looped through on the table. Our current data tables are for sorting only there is no other features used i.e. ajax. We do have some custom drop down menus for filtering certain data before it goes into the data table.
We have a print pdf button which sets a hidden field which tells the back end to render a pdf instead of the view.
Is it possible to have an external print button which will do this taking into account which ever column is sorted and which search is used. Ultimately just printing a custom pdf of the data shown.
External in the sense that it is in a different section of the page away from the table like with examples.