Popup in Print preview
Popup in Print preview
paz
Posts: 5Questions: 2Answers: 0
Hello there,
I want the user to see a popup with a message after he clicked on the print button. This once was possible in the datatables retired section. See: sInfo
I can't do that that with message
since I don't want to write something into the print view itself.
This discussion has been closed.
Answers
Hi @paz ,
I suspect the easiest way now would be to just add a listener on the button's
click
event, and pop-up a message there. I'm not sure how else you could do it,Cheers,
Colin
I see you mean something like that:
{
extend: 'print',
text: 'Drucken / Als pdf Speichern',
message: "guguseli",
action: function ( e, dt, node, config ) {
alert( 'Activated!' );
},
exportOptions: {
modifier: {
page: 'current'
},
stripHtml: false
}
}
If I do that, the popup appears but the button is no longer working.
Hi @paz ,
Possibly, or more like this one,
Cheers,
Colin