Export gantt api [React]

Hi guys

when I want to implement the Export Excel from API gant api and use version V.7.1.12. I have some issue “Uncaught ReferenceError: gantt is not defined”.

Could you please help?

Hello Septe,
If you want to use the export functionality in React application, you need to include the contents of the export’s api.js file in the file with the Gantt configuration:

Here is a React demo that demonstrates that:
https://files.dhtmlx.com/30d/d5b7c3f1be578bc533bd11e3d60e5d7c/react+export(api.js_contents_included).zip

1 Like

thank u very much Mr it’s work.