DHTMLX / gantt

GPL version of Javascript Gantt Chart
https://dhtmlx.com/docs/products/dhtmlxGantt/
GNU General Public License v2.0
1.48k stars 324 forks source link

hot to use export_api? #96

Open Fitz-Wen opened 1 year ago

Fitz-Wen commented 1 year ago

install dhtmlx-gantt

gantt.plugins({
    export_api: true
 })

use gantt.exportToPDF

gantt.exportToPDF is not a function

image

datastructurey commented 1 year ago

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

gearcoded commented 1 year ago

@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 commented 1 year ago

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.