Options
All
  • Public
  • Public/Protected
  • All
Menu
deprecated

old api - kept for compatibility.

An object representing a message box.

Hierarchy

  • MessageBox

Index

Constructors

Properties

Methods

Constructors

constructor

  • new MessageBox(title: string, message: string, icon: string, buttons: string, onclose: Function, quiet?: boolean): any
  • Creates a message box.

    Parameters

    • title: string

      The title of the message box window.

    • message: string

      The message of the message box text.

    • icon: string

      The icon name of the message box icon.

    • buttons: string

      The buttons to use.

    • onclose: Function

      The callback to call once the message box is closed.

    • Optional quiet: boolean

      Whether to be quiet.

    Returns any

Properties

Optional Readonly btnOk

btnOk: HTMLButtonElement

OK Button.

dlg

The underlying window object for the message box.

Readonly icon

icon: string

The message box icon.

onclose

onclose: Function

Fired when the message box is being closed.

quiet

quiet: boolean

Whether to be quiet.

Methods

closeDialog

  • closeDialog(): void
  • Closes the window.

    Returns void

setSize

  • Sets the size of the message box.

    Parameters

    • w: number

      The width of the message box to set.

    • h: number

      The height of the message box to set.

    Returns MessageBox

show

  • show(): void
  • Shows the message box.

    Returns void

Generated using TypeDoc