Zum Hauptinhalt springen

serialize

Description

Wandelt die Daten in JSON- oder XML-Format um

serialize: (type?: string) => any

Parameters

  • type - (optional) string - gibt das Format für die Serialization an. Mögliche Werte: 'json' (Standard ), 'xml'.

Returns

  • data - (object) - gibt ein Gantt-Datenobjekt zurück

Example

gantt.serialize('xml');