exportToICal
Description
Exports data from the Gantt chart to an iCal string
exportToICal: (export?: any) => void
Parameters
export- object - optional, an object with export settings (see the details)
Example
gantt.exportToICal({
server:"https://myapp.com/myexport/gantt"
});
Details
note
This method is defined in the export extension, so you need to activate the export_api plugin. Read the details in the Export/Import for Excel, Export to iCal article.
<script src="codebase/dhtmlxgantt.js"></script>
<script src="https://export.dhtmlx.com/gantt/api.js"></script>
The exportToICal() method takes as a parameter an object with the following properties (optional):
- server - (string) sets the API endpoint for the request. Can be used with the local install of the export service. The default value is
https://export.dhtmlx.com/gantt; - name - (string) allows specifying custom name and extension for the file but the file will still be exported in the iCal format. Check the example.
Related API
- exportToMSProject
- exportToPrimaveraP6
- exportToExcel
- exportToPDF
- exportToPNG
- exportToJSON
- importFromExcel
- importFromPrimaveraP6
- importFromMSProject