Print button with a specialized Print.css file
Print button with a specialized Print.css file
Bsim26
Posts: 1Questions: 0Answers: 0
When you're using the initialization of the print button, is there any possible way to use an external print.css file for use in the Datatables print button with an incredibly old dot-matrix printer? If anyone can point me in the right direction the would be wonderful!
This discussion has been closed.
Replies
The simplest way to style your printing is probably by using your own CSS file.
You would reference it in your HTML like so:
(The div is unnecessary.)
I have no reason to think that DataTables would interfere with this, but I'm no expert.
@tangerine is correct - DataTables won't mess with that stylesheat - it will be included on the exported table's page ready for print. Alternatively, you could use the
customize
callback of theprint
button type to inject thatlink
into the print view.Allan
But doesn't dataTable Print button remove all classes from the table in the print view page??
The classes for the
table
itself should still be present.Allan