Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hot to use export_api? #96

Open
Fitz-Wen opened this issue Jul 5, 2023 · 3 comments
Open

hot to use export_api? #96

Fitz-Wen opened this issue Jul 5, 2023 · 3 comments

Comments

@Fitz-Wen
Copy link

Fitz-Wen commented Jul 5, 2023

install dhtmlx-gantt

gantt.plugins({
    export_api: true
 })

use gantt.exportToPDF

gantt.exportToPDF is not a function

image

@datastructurey
Copy link

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

@gearcoded
Copy link

@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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants