exportToJSON

exports the structure and data of a Gantt chart into a JSON object

void exportToJSON(object config);

Parameters

configobjectan object with Gantt configuration

Example

gantt.exportToJSON({
    name:"gantt.json"
});

Details

This method is defined in the export extension, so you need to include it on the page:

<script src="http://export.dhtmlx.com/gantt/api.js"></script>

The config object can contain following options:

  • name - the name of the exported json file
  • data - (array) list of tasks to be exported. The whole gantt will be exported if not specified
See also
Back to top