🍉 Meet Flexmonster Pivot Table & Charts 2.9.Check out all hot features!
Get Free Trial

Modify export options dynamically

Luc Schulz asked 6 days ago

When the user clicks an option in the Export tab for a table, is there a way to cancel the export and instead call a custom function?
What I’m trying to do is specify options for an export after the user clicks one of the export buttons.
I’d like to avoid adding customized buttons or separate functions for each table on a page.

2 answers

Vera Didenko Vera Didenko Flexmonster 6 days ago

Thank you for your question.
Yes, you can override the Export Tab’s behavior by customizing the Toolbar.
Here is a JSFiddle for illustration: https://jsfiddle.net/flexmonster/mugLx40n/.
In the example, a custom function is provided for the "Export" -> "To PDF" Toolbar Tab.
Please let us know if this works fine for you.
Kind regards,

Luc Schulz 5 days ago


Please login or Register to Submit Answer