onDesignClose

API reference for the JavaScript API's onDesignClose method.

A function that runs when a user closes a design.

api.createDesign({
design: {
type: "Poster",
},
onDesignClose: () => {
// code goes here
},
});
javascript

This function doesn't receive any parameters.

void