zksailor534 / react-adminlte-dash

This project is No Longer Maintained. React implementation of AdminLTE themed dashboard
http://zksailor534.github.io/react-adminlte-dash/
MIT License
167 stars 35 forks source link

no-print #8

Open dchan14 opened 7 years ago

dchan14 commented 7 years ago

is there an easy way to target your dashboard to make classnames include no-print so that just the content-wrapper is printable?

zksailor534 commented 7 years ago

There isn't currently, but that doesn't look like it would be too difficult. Probably just a top-level option that gets passed (through mostly pre-existing) mechanisms to all the lower level components except the content. Unfortunately, I don't have time right now to do it myself. If you want to create a pull request and try it yourself, I'll help as I can and merge it when you're done.

dchan14 commented 7 years ago

i tried looking at the code but i think it's a little over my head right now still learning but i used this in my css for a quick fix and in the div right above {children} i put className="printarea".

@media print { body * { visibility: hidden; } .printarea * { visibility: visible; overflow:visible; left: 0; top: 0; } }

thanks for the quick response