This sample demonstrates client-side exporting of the Gantt, which allows you to export Gantt data to Excel, PDF and CSV formats. Using the Gantt toolbar buttons, you can export Gantt data to the desired format.
Gantt supports client-side exporting, which allows you to export its data to the Excel, PDF and CSV formats. In this demo, we have defined actions in the toolbarClick event to export the Gantt data using the excelExport, pdfExport and csvExport methods. Injecting Module: Gantt component features are segregated into individual feature-wise modules. To use Excel and CSV export features, inject the ExcelExport module using the Gantt.Inject(ExcelExport) method. To use PDF export feature, inject the PdfExport module using the Gantt.Inject(PdfExport) method. To use toolbar feature, inject the Toolbar module using the Gantt.Inject(Toolbar) method. To use markers feature, inject the DayMarkers module using the Gantt.Inject(DayMarkers) method. To use selection feature, inject the Selection module using the Gantt.Inject(Selection) method. More information on the Essential® JS2 Gantt Chart can be found in this documentation section.