Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Menu

Index

Methods

close

  • close(): void

open

  • open(): void

Static create

  • create(_options: Object, _callback: (_option: string) => void, _cssClass?: string): Menu
  • Displays a non-modal dialog showing buttons with the texts given as values with the options-object to be selected by the user. When the user uses a button, the given callback function is envolde with the key the selected text is associated with. The class-parameter allows for specific styling with css. Returns a Menu-object.

    Parameters

    • _options: Object
    • _callback: (_option: string) => void
        • (_option: string): void
        • Parameters

          • _option: string

          Returns void

    • Optional _cssClass: string

    Returns Menu

Static getInput

  • getInput(_options: Object, _cssClass?: string): Promise<string>
  • Displays a modal dialog showing buttons with the texts given as values with the options-object to be selected by the user. Use with await to receive the text the user selected while the dialog closes. The class-parameter allows for specific styling with css.

    Parameters

    • _options: Object
    • Optional _cssClass: string

    Returns Promise<string>

Generated using TypeDoc