charton API / @chart-on/ui / index / confirmDialog
Function: confirmDialog()
confirmDialog(
host,options):Promise<boolean>
Defined in: ui/src/dialog.ts:293
Ask a yes or no question in a small modal over host, which may stack over another dialog. Resolves true when confirmed; Cancel, Escape, the close button and a press outside resolve false. Focus starts on Cancel.
Parameters
host
HTMLElement
options
Returns
Promise<boolean>