Dynamic Print Message
Dynamic Print Message
INTONE
Posts: 153Questions: 58Answers: 6
Is there a way to get a dynamic print message. I tried:
{
extend: 'print',
message: '<h3>'+message+'</h3>'
}
but the message variable will not pass
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
That code will execute immediately - there is no deleted execution there. It would require the
message
option for the print button to accept callbacks to be able to dynamically update the message, and unfortunately it doesn't do that. Good option for a future addition though - thanks.Allan
Allan,
I am happy to report that I got:
{
extend: 'print',
message: '<h3>'+message+'</h3>'
}
to work.
Tom's implemented dynamic function options for the PDF button types, and based on that I've just added it to the
print
button as well.Good to hear that you got it working for your use case though!
Allan