Title: Print Button
Last modified: May 8, 2020

---

# Print Button

 *  [sonisitez](https://wordpress.org/support/users/sonisitez/)
 * (@sonisitez)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/print-button-19/)
 * Excited using your plugin, give 5 star, it’s possible to create print button,
   in pop up detail modal? in this SS: [https://ibb.co/jGn6PzZ](https://ibb.co/jGn6PzZ)
 * Thank you

Viewing 1 replies (of 1 total)

 *  Plugin Author [Passionate Programmer Peter](https://wordpress.org/support/users/peterschulznl/)
 * (@peterschulznl)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/print-button-19/#post-12805868)
 * 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.

 * ![](https://ps.w.org/wp-data-access/assets/icon-256x256.png?rev=3299063)
 * [WP Data Access – App Builder for Tables, Forms, Charts, Maps & Dashboards](https://wordpress.org/plugins/wp-data-access/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-data-access/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-data-access/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-data-access/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-data-access/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Passionate Programmer Peter](https://wordpress.org/support/users/peterschulznl/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/print-button-19/#post-12805868)
 * Status: not resolved