Is there any event for export completion? I want to disable the export button when I click on it until the export is complete.
Unfortunately there is no such kind of event for the export functionality.
Hello @D_F,
The dev team added the possibility to add callback for export function:
The code will look like follows:
diagram.export.pdf()
.then(() => console.log("success"))
.catch(() => console.log("failure"))
.finally(() => console.log("finished"));
Here is an example:
https://snippet.dhtmlx.com/8pw0nn41
KInd regards,
1 Like