Hidding of aButtons

Hidding of aButtons

freeklelurifreekleluri Posts: 2Questions: 1Answers: 0
edited November 2014 in Editor

Hello there,

First of all, thank you for the brilliant work on this API.

I am trying to find a way to hide the aButtons after the document has been created.

I am using jspdf to print the entire page including an editor table in pdf on user clic on a button, but unfortunately when printing, the aButtons titles are displayed on the page with a line jump for each button.

What could be the easiest way to get ride of these buttons when the user clic on the print button?

Answers

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin

    There isn't a public API to do this at the moment I'm sorry to say. What you would probably need to do is use a little bit of jQuery to remove the buttons from display and then add them again when the print is done (assuming it is blocking?).

    $('div.DTTT_container').css( 'display', 'none' );
    

    Allan

  • freeklelurifreekleluri Posts: 2Questions: 1Answers: 0

    Perfect, many thanks Allan!

This discussion has been closed.