Options
All
  • Public
  • Public/Protected
  • All
Menu

Dialog objects are dispatched by page via the 'dialog' event.

Hierarchy

  • Dialog

Index

Methods

accept

  • accept(promptText?: string): Promise<void>
  • Accepts the dialog.

    Parameters

    • Optional promptText: string

      A text to enter in prompt. Does not cause any effects if the dialog's type is not prompt.

    Returns Promise<void>

defaultValue

  • defaultValue(): string
  • If dialog is prompt, returns default prompt value. Otherwise, returns empty string.

    Returns string

dismiss

  • dismiss(): Promise<void>
  • Dismiss the dialog

    Returns Promise<void>

message

  • message(): string
  • Returns the message displayed in the dialog.

    Returns string

type

  • The dialog type. Dialog's type, can be one of alert, beforeunload, confirm or prompt.

    Returns DialogType

Generated using TypeDoc