Can I use my button to give the functionality of the PDF button from DataTable?

Can I use my button to give the functionality of the PDF button from DataTable?

Ilian_99Ilian_99 Posts: 3Questions: 2Answers: 0

Hello! I have a question related to the buttons or more precisely to the print button. I have a ready-made table and so far I have printed it in a different way:

<a href="print_pdf.php" class="btn btn-success pull-right"> <span class = "glyphicon glyphicon-print"> </span> PDF </a>

As you can see in the example I use a bootstrap and I have positioned the button where I want.
My question is whether it is possible to add a DataTable to my project using the print method but with my button. Because I see that with javascript the button for printing with the corresponding libraries is added in a special way. thanks for your time.

Answers

  • colincolin Posts: 12,608Questions: 0Answers: 2,154

    I'm not following your question, sorry, but this example may help. It's showing how you can add a print Button anywhere in your page.

    Colin

Sign In or Register to comment.