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:


thank u very much Mr it’s work.