We have a client request that I am currently experiencing issues with. I created a custom task that looks like a standard task, but with a dashed border. I have also setup task filtering. The problem is that when I try to export to png, all data is exported (Not just the filtered data displaying on screen), and my custom task styles are not displayed in the export.
Is there a way to make this work using the Gantt Api? If not, has anybody worked with exporting filtered data in the past? Any tips or direction would be appreciated.
This project uses: MySQL, Node, Express, and Jade.
We plan to allow export of filtered data in one of the next updates ( you can expect the update till the end of January ). Possibility to export markers and any other js-code based content is a more long term task. While we have it in our plans, I can’t provide the exact date, when it will be available.
^^My local setup:
export to pdf keeps my custom task styles, but export to png does not work. Please let me know if you need the exact files, but these came from dhtmlxGantt_v4.0.0/samples/04_customization/08_api/07_export_styles.html
I will be submitting a support ticket on this issue, but does anybody know of a work around in the meantime?
There are two ways to include styles in the export
a) style tag with inline styles, works everywhere
b) link tag with reference to the used stylesheet. It will work only if this link is globally accessible ( export service will need to fetch it )