gantt
gantt copied to clipboard
hot to use export_api?
install dhtmlx-gantt
gantt.plugins({
export_api: true
})
use gantt.exportToPDF
gantt.exportToPDF is not a function
I also encountered, I found that the plugin package does not seem to have this parameter to use
@Fitz-Wen and @datastructurey, the documentation assumes you are running the latest Gantt version. Starting from the 8.0 version, you need to use the plugins method.
In earlier versions, you need to connect the export's api.js file:
https://export.dhtmlx.com/gantt/api.js
Here is the migration article: https://docs.dhtmlx.com/gantt/migrating.html#7180:~:text=resource%20assignments%20section.-,Export%20service,-From%20v8.0%2C%20the
Please note, that the file is not updated, so if there are some bugs related to that file, you won't get updates.
I will add a task for the technical writer to add a note for the earlier versions.
Recently, it was discovered that the import and export functionality is not added via the plugins method in the 8.0.0-8.0.5 versions. It will be fixed in the newer versions, but I cannot give you any ETA.