Popup in Print preview

Popup in Print preview

pazpaz 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.

Answers

  • colincolin Posts: 15,146Questions: 1Answers: 2,586

    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

  • pazpaz Posts: 5Questions: 2Answers: 0
    edited June 2018

    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.

  • colincolin Posts: 15,146Questions: 1Answers: 2,586

    Hi @paz ,

    Possibly, or more like this one,

    Cheers,

    Colin

This discussion has been closed.