Wondering how to make Print view working for a regular HTML table

Wondering how to make Print view working for a regular HTML table

ttbackttback Posts: 19Questions: 0Answers: 0
edited July 2012 in General
I need to make a HTML table printable and I really like your effect in TableTools for printing. I traced down the API source code but found it a little hard to understand. Do you have any reference for how to easily make any div element take over the whole screen like that and you can 'escape' back?

Replies

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    I did actually rip the print code out of TableTools a while back and it could quite successfully show any element (not just tables). I meant to publish the code, but never got around to doing so. I'm away from my main computer at the moment, but I'll try to remember to throw it up on gthub when I get back.

    Other than that, you coudl look at the functions in TableTools with 'print' in their name. It is relatively self contained.

    Allan
  • ttbackttback Posts: 19Questions: 0Answers: 0
    Cool, I'll try to rip it apart or see if someone else tried to achieve same effect before. It is quite hard to do it right without knowing all the namespaces though, but I'll try.
This discussion has been closed.