Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Dialog

Light wrapper around Morebits.simpleWindow that sets the script name (Twinkle) and provides a method to set footer links at once

Hierarchy

  • simpleWindow
    • Dialog

Index

Constructors

constructor

  • new Dialog(width: number, height: number): Dialog
  • Parameters

    • width: number
    • height: number

    Returns Dialog

Properties

buttons

buttons: any[]

hasFooterLinks

hasFooterLinks: boolean

height

height: number

scriptName

scriptName: string

Methods

addContent

  • addContent(content: HTMLElement): simpleWindow
  • Parameters

    • content: HTMLElement

    Returns simpleWindow

addFooterLink

  • addFooterLink(text: string, wikiPage: string, prep?: boolean): simpleWindow
  • Parameters

    • text: string
    • wikiPage: string
    • Optional prep: boolean

    Returns simpleWindow

close

  • close(event?: Event): simpleWindow
  • Parameters

    • Optional event: Event

    Returns simpleWindow

display

  • display(): simpleWindow

focus

  • focus(): simpleWindow

purgeContent

  • purgeContent(): simpleWindow

setContent

  • setContent(content: HTMLElement): simpleWindow
  • Parameters

    • content: HTMLElement

    Returns simpleWindow

setFooterLinks

setHeight

  • setHeight(height: number): simpleWindow
  • Parameters

    • height: number

    Returns simpleWindow

setModality

  • setModality(modal: boolean): simpleWindow
  • Parameters

    • modal: boolean

    Returns simpleWindow

setScriptName

  • setScriptName(name: string): simpleWindow
  • Parameters

    • name: string

    Returns simpleWindow

setTitle

  • setTitle(title: string): simpleWindow
  • Parameters

    • title: string

    Returns simpleWindow

setWidth

  • setWidth(width: number): simpleWindow
  • Parameters

    • width: number

    Returns simpleWindow

Static setButtonsEnabled

  • setButtonsEnabled(enabled: boolean): void
  • Parameters

    • enabled: boolean

    Returns void

Generated using TypeDoc