Skip to content

cancel

Studio is being deprecated, please head over to the documentation page for Mattercraft, our most advanced 3D tool for the web, where you can find the most recent information and tutorials.

("cancel", () => void): this;

Emitted if the user cancels the dialog.

this

When the cancel event is fired, attached handler functions are called with no parameters.

myPrompt.on("cancel", dialogCancelled);
function dialogCancelled(){
//code to run when dialog is cancelled.
}