Info | context-menu

### Hierarchy

- AbstractPostable
  - Info

### Implements

- KeyNavigatable
- MouseNavigatable
- Element
- Postable

## Index

### Constructors

- constructor

### Properties

- className
- close
- content
- contentDiv
- menu
- role
- signature
- title

### Methods

- addAttributes
- addEvents
- attachMenu
- bubbleKey
- click
- display
- down
- escape
- focus
- generateClose
- generateContent
- generateHtml
- generateSignature
- generateTitle
- getHtml
- isPosted
- keydown
- left
- mousedown
- mouseout
- mouseover
- mouseup
- post
- right
- setHtml
- space
- stop
- unfocus
- unpost
- up

## Constructors

### constructor

- new Info(title: string, content: Function, signature: string): Info

- - Defined in info.ts:48
  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']

Overwrites MenuElement.className

- Defined in info.ts:36

override

### Private close

close: CloseButton = this.generateClose()

- Defined in info.ts:47

### Private content

content: Function

- Defined in info.ts:48

### Private contentDiv

contentDiv: HTMLElement = this.generateContent()

- Defined in info.ts:46

### Private menu

menu: ContextMenu

- Defined in info.ts:43

### Protected role

role: string = "dialog"

Overwrites MenuElement.role

- Defined in info.ts:41

override

### Private signature

signature: string = ""

- Defined in info.ts:45

### Private title

title: string = ""

- Defined in info.ts:44

## Methods

### addAttributes

- addAttributes(attributes: object): void

- Inherited from MenuElement.addAttributes

  - Defined in menu_element.ts:50

  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

- Inherited from AbstractNavigatable.addEvents

  - Defined in abstract_navigatable.ts:153

  Adds navigation events to an HTML element.

  #### Parameters

  - ##### element: HTMLElement

    The HTML element for navigation.

  #### Returns void

### attachMenu

- attachMenu(menu: ContextMenu): void

- - Defined in info.ts:68

  Attaches the widget to a context menu.

  #### Parameters

  - ##### menu: ContextMenu

    The parent menu.

  #### Returns void

### bubbleKey

- bubbleKey(): void

- Inherited from AbstractNavigatable.bubbleKey

  - Defined in abstract_navigatable.ts:38

  Bubble this key event.

  #### Returns void

### click

- click(event: MouseEvent): void

- Implementation of MouseNavigatable.click

  Overwrites AbstractNavigatable.click

  - Defined in info.ts:127
  override

  #### Parameters

  - ##### event: MouseEvent

  #### Returns void

### Protected display

- display(): void

- Overwrites AbstractPostable.display

  - Defined in info.ts:116
  override

  #### Returns void

### down

- down(event: KeyboardEvent): void

- Implementation of KeyNavigatable.down

  Inherited from AbstractNavigatable.down

  - Defined in abstract_navigatable.ts:100
  override

  #### Parameters

  - ##### event: KeyboardEvent

  #### Returns void

### escape

- escape(event: KeyboardEvent): void

- Implementation of KeyNavigatable.escape

  Overwrites AbstractNavigatable.escape

  - Defined in info.ts:140
  override

  #### Parameters

  - ##### event: KeyboardEvent

  #### Returns void

### focus

- focus(): void

- Inherited from MenuElement.focus

  - Defined in menu_element.ts:88
  override

  #### Returns void

### Private generateClose

- generateClose(): CloseButton

- - Defined in info.ts:156

  #### Returns CloseButton

  The close button for the widget.

### Private generateContent

- generateContent(): HTMLElement

- - Defined in info.ts:178

  #### Returns HTMLElement

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

### generateHtml

- generateHtml(): void

- Implementation of Element.generateHtml

  Overwrites MenuElement.generateHtml

  - Defined in info.ts:83
  override

  #### Returns void

### Private generateSignature

- generateSignature(): HTMLElement

- - Defined in info.ts:188

  #### Returns HTMLElement

  The signature element of the widget.

### Private generateTitle

- generateTitle(): HTMLElement

- - Defined in info.ts:167

  #### Returns HTMLElement

  The title element of the widget.

### getHtml

- getHtml(): HTMLElement

- Implementation of Element.getHtml

  Overwrites MenuElement.getHtml

  - Defined in info.ts:75
  override

  #### Returns HTMLElement

### isPosted

- isPosted(): boolean

- Implementation of Postable.isPosted

  Inherited from AbstractPostable.isPosted

  - Defined in abstract_postable.ts:41
  override

  #### Returns boolean

### keydown

- keydown(event: KeyboardEvent): void

- Implementation of KeyNavigatable.keydown

  Overwrites AbstractNavigatable.keydown

  - Defined in info.ts:132
  override

  #### Parameters

  - ##### event: KeyboardEvent

  #### Returns void

### left

- left(event: KeyboardEvent): void

- Implementation of KeyNavigatable.left

  Inherited from AbstractNavigatable.left

  - Defined in abstract_navigatable.ts:85
  override

  #### Parameters

  - ##### event: KeyboardEvent

  #### Returns void

### mousedown

- mousedown(event: MouseEvent): void

- Implementation of MouseNavigatable.mousedown

  Inherited from AbstractNavigatable.mousedown

  - Defined in abstract_navigatable.ts:117
  override

  #### Parameters

  - ##### event: MouseEvent

  #### Returns void

### mouseout

- mouseout(event: MouseEvent): void

- Implementation of MouseNavigatable.mouseout

  Inherited from AbstractNavigatable.mouseout

  - Defined in abstract_navigatable.ts:138
  override

  #### Parameters

  - ##### event: MouseEvent

  #### Returns void

### mouseover

- mouseover(event: MouseEvent): void

- Implementation of MouseNavigatable.mouseover

  Inherited from AbstractNavigatable.mouseover

  - Defined in abstract_navigatable.ts:131
  override

  #### Parameters

  - ##### event: MouseEvent

  #### Returns void

### mouseup

- mouseup(event: MouseEvent): void

- Implementation of MouseNavigatable.mouseup

  Inherited from AbstractNavigatable.mouseup

  - Defined in abstract_navigatable.ts:124
  override

  #### Parameters

  - ##### event: MouseEvent

  #### Returns void

### post

- post(): void

- Implementation of Postable.post

  Overwrites AbstractPostable.post

  - Defined in info.ts:96
  override

  #### Returns void

### right

- right(event: KeyboardEvent): void

- Implementation of KeyNavigatable.right

  Inherited from AbstractNavigatable.right

  - Defined in abstract_navigatable.ts:90
  override

  #### Parameters

  - ##### event: KeyboardEvent

  #### Returns void

### setHtml

- setHtml(html: HTMLElement): void

- Implementation of Element.setHtml

  Inherited from MenuElement.setHtml

  - Defined in menu_element.ts:69
  override

  #### Parameters

  - ##### html: HTMLElement

  #### Returns void

### space

- space(event: KeyboardEvent): void

- Implementation of KeyNavigatable.space

  Inherited from AbstractNavigatable.space

  - Defined in abstract_navigatable.ts:80
  override

  #### Parameters

  - ##### event: KeyboardEvent

  #### Returns void

### Protected stop

- stop(event: Event): void

- Inherited from AbstractNavigatable.stop

  - Defined in abstract_navigatable.ts:106

  Stops event propagation and bubbling.

  #### Parameters

  - ##### event: Event

    The keyboard event that fired.

  #### Returns void

### unfocus

- unfocus(): void

- Inherited from MenuElement.unfocus

  - Defined in menu_element.ts:97
  override

  #### Returns void

### unpost

- unpost(): void

- Implementation of Postable.unpost

  Overwrites AbstractPostable.unpost

  - Defined in info.ts:147
  override

  #### Returns void

### up

- up(event: KeyboardEvent): void

- Implementation of KeyNavigatable.up

  Inherited from AbstractNavigatable.up

  - Defined in abstract_navigatable.ts:95
  override

  #### Parameters

  - ##### event: KeyboardEvent

  #### Returns void

Generated using TypeDoc