How to include line breaks when printing
How to include line breaks when printing
justSteve
Posts: 49Questions: 8Answers: 1
I'm creating cell contends like:
"mRender": function (data, type, full) {
return full.LastName + ", " + full.FirstName + "<br>" + full.BillingEmail + "<br>" + full.Institution;
When printing or exporting the <br> is not honored. I tried inserting a javascript line break char (\n) without success. Any workarounds?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
You can use the
scriptHtml
option ofbuttons.exportData()
to have Buttons not strip the HTML. You use theexportOptions
object of theprint
button to set the options passed to the export method.Allan
Someone else might find this syntax useful