cancel

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

Emitted if the user cancels the dialog.

Returns

this

Handler Function

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

Example

myPrompt.on("cancel", dialogCancelled);

function dialogCancelled(){
    //code to run when dialog is cancelled.
}
zapcode branded_zapcode i