onDesignClose
API reference for the JavaScript API's onDesignClose method.
A function that runs when a user closes a design.

Usage

1
api.createDesign({
2
design: {
3
type: "Poster",
4
},
5
onDesignClose: () => {
6
// code goes here
7
},
8
});
Copied!
You can pass the onDesignClose function into the createDesign and editDesign functions.

Parameters

This function doesn't receive any parameters.

Returns

void
Copy link