9.0 Released! → Native ESM runtimes 🚀, Vite support ⚡️, multi-window apps and more...
Read Announcement

Call Signature

ts
function confirm(message: string): Promise<boolean>;

Defined in: ui/dialogs/index.d.ts:78

The confirm() method displays a dialog box with a specified message.

Parameters

ParameterTypeDescription
messagestringSpecifies the text to display in the confirm box.

Returns

Promise<boolean>

Call Signature

ts
function confirm(options: ConfirmOptions): Promise<boolean>;

Defined in: ui/dialogs/index.d.ts:84

The confirm() method displays a dialog box with a specified message.

Parameters

ParameterTypeDescription
optionsConfirmOptionsSpecifies the options for the confirm box.

Returns

Promise<boolean>