Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

constructor

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

    {AbstractPostable}

    Parameters

    • title: string

      The title of the info box.

    • content: Function

      Function generating the content of the box.

    • signature: string

      The final line of the info box.

    Returns Info

Properties

Protected className

className: "CtxtMenu_ContextMenu" | "CtxtMenu_Menu" | "CtxtMenu_MenuArrow" | "CtxtMenu_MenuActive" | "CtxtMenu_MenuCheck" | "CtxtMenu_MenuClose" | "CtxtMenu_MenuDisabled" | "CtxtMenu_MenuItem" | "CtxtMenu_MenuLabel" | "CtxtMenu_MenuRadioCheck" | "CtxtMenu_MenuRule" | "CtxtMenu_MousePost" | "CtxtMenu_RTL" | "CtxtMenu_Attached" | "CtxtMenu_Info" | "CtxtMenu_InfoClose" | "CtxtMenu_InfoContent" | "CtxtMenu_InfoSignature" | "CtxtMenu_InfoTitle" | "CtxtMenu_MenuFrame" = HtmlClasses['INFO']
override

Private close

close: CloseButton = this.generateClose()

Private content

content: Function

Private contentDiv

contentDiv: HTMLElement = this.generateContent()

Private menu

Protected role

role: string = "dialog"
override

Private signature

signature: string = ""

Private title

title: string = ""

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 generateClose

Private generateContent

  • generateContent(): HTMLElement
  • Returns HTMLElement

    The basic content element of the widget. The actual content is regenerated and attached during posting.

generateHtml

  • generateHtml(): void

Private generateSignature

  • generateSignature(): HTMLElement
  • Returns HTMLElement

    The signature element of the widget.

Private generateTitle

  • generateTitle(): HTMLElement
  • Returns HTMLElement

    The title element of the widget.

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

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

Generated using TypeDoc