Skip to content

confirm

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.

("confirm", (string) => void): this;

Emitted if the user completes the dialog. Handler functions will be passed one argument: the text that was entered.

this

When the confirm event is fired, attached handler functions are called with a single argument, the text that was entered.

myPrompt.on("confirm", dialogConfirmed);
function dialogConfirmed(t){
//code to run when dialog is completed with input information stored in variable t
}