Static class to display a modal or non-modal dialog with an interface for the given mutator.

Constructors

Properties

Methods

Constructors

Properties

dom: HTMLDialogElement

Methods

  • Prompt the dialog to the user with the given headline, call to action and labels for the cancel- and ok-button Use await on call, to continue after the user has pressed one of the buttons.

    Parameters

    • _data: Object | Mutator | Mutable
    • _modal: boolean = true
    • _head: string = "Headline"
    • _callToAction: string = "Instruction"
    • _ok: string = "OK"
    • _cancel: string = "Cancel"

    Returns Promise<boolean>