Get Free Trial

Modify export options dynamically

Luc Schulz asked on June 10, 2021

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 June 11, 2021

Thank you for your question.
Yes, you can override the Export Tab’s behavior by customizing the Toolbar.
Here is a JSFiddle for illustration:
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 June 11, 2021


Please login or Register to Submit Answer