Viewing 1 replies (of 1 total)
  • Plugin Author Passionate Programmer Peter

    (@peterschulznl)

    That is a complex feature request! 🙂

    It is possible, but you need to overwrite the renderer for modals. I hope you are a good JavaScript programmer… 😉

    You need to have a look at the plugin source code first. Specifically file wpda_datatables_ajax_call.js in folder assets/js. Look at var modal = {...} in function wpda_datatables_ajax_call(). This is where the renderer for modals is defined. It adds a close button in the footer. That’s where you can add additional buttons.

    The plugin does not allow you to inject code here, so you need to write your own renderer. Basically this comes down to writing your own var modal and add it to your publication. You can use column table options (advanced) to add this logic.

    It works like this:
    1) The plugin uses a set of default
    2) If you changes settings in your publication, the defaults are overwritten
    3) If you add table options (advanced), these will overwrite defaults + changes

    So, 3 has the highest priority. You need to:
    – Disable modal
    – Add your own modal logic

    Can you do that?

    Best regargds,
    Peter

Viewing 1 replies (of 1 total)

The topic ‘Print Button’ is closed to new replies.