Skip to content

confirm

confirm(message, opts?): Promise<boolean>

Defined in: components/dialog.ts:206

Shows a confirmation dialog with Cancel and OK buttons. Returns a Promise<boolean>true if the user clicked OK, false otherwise.

string

Partial<DialogOptions> = {}

Promise<boolean>

if (await S.confirm("Delete this item?")) S.alert("Gone!");