Skip to content

Latest commit

 

History

History
49 lines (27 loc) · 768 Bytes

confirm.md

File metadata and controls

49 lines (27 loc) · 768 Bytes

@serenity-is/corelib / confirm

Function: confirm()

confirm(message, onYes, options?): Partial<Dialog>

Parameters

message

string

The message to display

onYes

() => void

Callback for Yes button click

options?

ConfirmDialogOptions

Additional options.

Returns

Partial<Dialog>

Deprecated

use confirmDialog

See

ConfirmOptions

Example

confirmDialog("Are you sure you want to delete?", () => { 
    // do something when yes is clicked
}

Defined in

src/q/dialogs-compat.ts:7