We have been testing the various export options and have noticed that when exporting to HTML, the resulting HTML document always has a fixed title of ‘Flexmonster Pivot Table’ and does not use the file name – is there a way to customise this title? I cannot see a way of doing it from the API documentation. I have tried editing the html in the callback handler passed to exportTo() but this has no effect.
Thank you for your question.
Our team agrees that customizing the title of the HTML document via a parameter would be a nice feature to have.
We have added this request to our backlog.
Meanwhile, the desired output can be achieved via the callbackHandler.
destinationType parameter is set to
plain, then you can modify the data as needed and then write the result to a file.
We have prepared a JSFiddle example for illustration.
Please let us know if this works fine for you.
We are looking forward to hearing from you.
is there a way to do this that doesn’t involve using a library. Seems like this should be a built-in feature.
Thank you for writing to us.
Currently, another way to set a custom title of the HTML export is to specify the
grid.title report option.
title: "My Daily Report"
Flexmonster will use the grid title instead of the default one for the HTML export.
Here is a JSFiddle example for illustration: https://jsfiddle.net/flexmonster/zupmd6kx/.
Please let us know if this helps.
Thanks! This works perfectly.