gantt icon indicating copy to clipboard operation
gantt copied to clipboard

hot to use export_api?

Open Fitz-Wen opened this issue 2 years ago • 3 comments

install dhtmlx-gantt

gantt.plugins({
    export_api: true
 })

use gantt.exportToPDF

gantt.exportToPDF is not a function

image

Fitz-Wen avatar Jul 05 '23 06:07 Fitz-Wen

I also encountered, I found that the plugin package does not seem to have this parameter to use

datastructurey avatar Aug 01 '23 09:08 datastructurey

@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.

gearcoded avatar Aug 22 '23 07:08 gearcoded

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.

gearcoded avatar Sep 06 '23 13:09 gearcoded