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.
Parameters
Section titled “Parameters”message
Section titled “message”string
Partial<DialogOptions> = {}
Returns
Section titled “Returns”Promise<boolean>
Example
Section titled “Example”if (await S.confirm("Delete this item?")) S.alert("Gone!");