Need a special offer?Find out if your project fits.
+

How does exportTo html work?

Resolved
Sumukh asked on September 7, 2019

Hi,
I actually wanted to get the data that is generated after clicking export to Html. By this I mean I want the grid with all the basic <table> tag. So I wanted to know how do you convert all pivot grid div to Html table. 
Will exportto Html help or there is any different approach I can achieve this.
The reason to get the grid in table tags is that I have a requirement of export to PPTX.
Do you have PPTX export in your wishlist?.
 

2 answers

Public
Vera Didenko Vera Didenko Flexmonster September 9, 2019

Hello, Sumukh,

Thank you for writing to us.
 
1. You can get the data that is generated after clicking export to HTML in the callback handler of the exportTo() API call
If  { destinationType: "plain" } is specified in the params object of the exportTo() API call, you can get the data that is generated for the export.
For HTML export the data returned will be of type String.
 
Here is a JSFiddle example for illustration: https://jsfiddle.net/flexmonster/2ez41y03/.
 
2. Export to pptx is not on our roadmap at the moment.
A possible workaround is to export to image. 
 
Please let us know if you have any questions.
 
Best Regards,
Vera

Public
Sumukh September 10, 2019

Thank you this will work.

Please login or Register to Submit Answer