Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "ui/dialogs"

Allows you to show different dialogs such as alerts, prompts, etc.

Index

Functions

action

  • action(message: string, cancelButtonText: string, actions: Array<string>): Promise<string>
  • action(options: ActionOptions): Promise<string>
  • The action() method displays a action box that prompts the visitor to choose some action.

    Parameters

    • message: string

      The text to display in the dialog box.

    • cancelButtonText: string

      The text to display in the cancel button.

    • actions: Array<string>

      List of available actions.

    Returns Promise<string>

  • The action() method displays a action box that prompts the visitor to choose some action.

    Parameters

    Returns Promise<string>

alert

  • The alert() method displays an alert box with a specified message.

    Parameters

    • message: string

      Specifies the text to display in the alert box.

    Returns Promise<void>

  • The alert() method displays an alert box with a specified message.

    Parameters

    • options: AlertOptions

      Specifies the options for the alert box.

    Returns Promise<void>

confirm

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

    Parameters

    • message: string

      Specifies the text to display in the confirm box.

    Returns Promise<boolean>

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

    Parameters

    Returns Promise<boolean>

login

  • The login() method displays a login dialog box that prompts the visitor for user name and password.

    Parameters

    • message: string

      The text to display in the dialog box.

    • Optional userName: string

      The default text to display in the user name input box. Optional.

    • Optional password: string

      The default text to display in the password input box. Optional.

    Returns Promise<LoginResult>

  • The login() method displays a login dialog box that prompts the visitor for user name and password.

    Parameters

    Returns Promise<LoginResult>

prompt

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method