Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

constructor

  • new Popup(title: string, content: Function): Popup
  • constructor
    extends

    {AbstractPostable}

    Parameters

    • title: string

      The title of the popup window.

    • content: Function

      Function generating the content.

    Returns Popup

Properties

Private active

active: HTMLElement = null

Protected className

className: HtmlClass
override

Private content

content: Function

Private menu

Private mobileFlag

mobileFlag: boolean = false

Protected role

role: string
override

Private title

title: string = ""

Private window

window: Window = null

The last opened window.

type

{Window}

Private windowList

windowList: Window[] = []

The list of all windows opened by this object.

type

{Array.}

Methods

addAttributes

  • addAttributes(attributes: object): void
  • Adds a attributes and values to the HTML element.

    Parameters

    • attributes: object

      A dictionary of attributes.

      • [attr: string]: string

    Returns void

addEvents

  • addEvents(element: HTMLElement): void

attachMenu

  • Attaches the widget to a context menu.

    Parameters

    Returns void

bubbleKey

  • bubbleKey(): void

click

  • click(event: MouseEvent): void

Protected display

  • display(): void

down

  • down(event: KeyboardEvent): void

escape

  • escape(event: KeyboardEvent): void

focus

  • focus(): void

Private generateContent

  • generateContent(): string
  • Generates the content of the window.

    Returns string

    The generated content.

generateHtml

  • generateHtml(): void

getHtml

  • getHtml(): HTMLElement

isPosted

  • isPosted(): boolean

keydown

  • keydown(event: KeyboardEvent): void

left

  • left(event: KeyboardEvent): void

mousedown

  • mousedown(event: MouseEvent): void

mouseout

  • mouseout(event: MouseEvent): void

mouseover

  • mouseover(event: MouseEvent): void

mouseup

  • mouseup(event: MouseEvent): void

post

  • post(): void

Private resize

  • resize(): void
  • Resizes the window so it fits snuggly around the content.

    Returns void

right

  • right(event: KeyboardEvent): void

setHtml

  • setHtml(html: HTMLElement): void

space

  • space(event: KeyboardEvent): void

Protected stop

  • stop(event: Event): void

unfocus

  • unfocus(): void

unpost

  • unpost(): void

up

  • up(event: KeyboardEvent): void

Object literals

Static Private popupSettings

popupSettings: object

directories

directories: string = "no"

height

height: number = 300

left

left: number = Math.round((screen.width - 400) / 2)

locationbar

locationbar: string = "no"

menubar

menubar: string = "no"

personalbar

personalbar: string = "no"

resizable

resizable: string = "yes"

scrollbars

scrollbars: string = "yes"

status

status: string = "no"

toolbar

toolbar: string = "no"

top

top: number = Math.round((screen.height - 300) / 3)

width

width: number = 400

Generated using TypeDoc