Skip to main content

importData

Description

Fires after the Import Data button has been clicked

Usage

importData: (data: any) => void;

Parameters

The callback of the event takes the following parameter:

  • data - (required) the imported data

Example

// initializing Diagram Editor
const editor = new dhx.DiagramEditor("editor_container");
// loading data
editor.parse(data);

// attaching a handler to the event
editor.events.on("importData", function(data) {
console.log("The data are imported from the JSON file");
});