Class: CloseButton

CloseButton

new CloseButton(element)

Parameters:
Name Type Description
element Postable The postable element the close button is attached to.
Source:

Extends

Members

className

Source:

role

Source:

Methods

addAttributes(attributes)

Adds a attributes and values to the HTML element.
Parameters:
Name Type Description
attributes Object.<string, string> A dictionary of attributes.
Inherited From:
Source:

addEvents(element)

Adds navigation events to an HTML element.
Parameters:
Name Type Description
element HTMLElement The HTML element for navigation.
Inherited From:
Source:

bubbleKey()

Bubble this key event.
Inherited From:
Source:

click(event)

Navigation on mouse click events.
Parameters:
Name Type Description
event MouseEvent The mouse event that fired.
Inherited From:
Implements:
Source:

display()

Source:

down(event)

Navigation on downwards arrow key pressed.
Parameters:
Name Type Description
event KeyboardEvent The keyboard event that fired.
Inherited From:
Implements:
Source:

escape(event)

Navigation on escape key pressed.
Parameters:
Name Type Description
event KeyboardEvent The keyboard event that fired.
Inherited From:
Implements:
Source:

focus()

Inherited From:
Source:

generateHtml()

Forces generation of the actual DOM element.
Overrides:
Implements:
Source:

getHtml() → {HTMLElement}

Generates the DOM element if it does not yet exists and returns it.
Inherited From:
Implements:
Source:
Returns:
The HTML element associated with this entry.
Type
HTMLElement

isPosted() → {boolean}

Inherited From:
Implements:
Source:
Returns:
True if element is posted in the page.
Type
boolean

keydown(event)

Navigation selection on keyboard events.
Parameters:
Name Type Description
event KeyboardEvent The keyboard event that fired.
Overrides:
Implements:
Source:

left(event)

Navigation on left arrow key pressed.
Parameters:
Name Type Description
event KeyboardEvent The keyboard event that fired.
Inherited From:
Implements:
Source:

mousedown(event)

Navigation selection on mouse down events.
Parameters:
Name Type Description
event MouseEvent The mouse event that fired.
Overrides:
Implements:
Source:

mouseout(event)

Navigation selection on mouse out events.
Parameters:
Name Type Description
event MouseEvent The mouse event that fired.
Inherited From:
Implements:
Source:

mouseover(event)

Navigation selection on mouse over events.
Parameters:
Name Type Description
event MouseEvent The mouse event that fired.
Inherited From:
Implements:
Source:

mouseup(event)

Navigation selection on mouse up events.
Parameters:
Name Type Description
event MouseEvent The mouse event that fired.
Inherited From:
Implements:
Source:

post(xnullable, ynullable)

Posts the element at the given coordinates.
Parameters:
Name Type Attributes Description
x number <nullable>
The x coordinate.
y number <nullable>
The y coordinate.
Inherited From:
Implements:
Source:
Navigation on right arrow key pressed.
Parameters:
Name Type Description
event KeyboardEvent The keyboard event that fired.
Inherited From:
Implements:
Source:

setHtml(element)

Parameters:
Name Type Description
element HTMLElement Sets the HTML Element.
Inherited From:
Implements:
Source:

space(event)

Navigation on space key pressed.
Parameters:
Name Type Description
event KeyboardEvent The keyboard event that fired.
Overrides:
Implements:
Source:

stop(event)

Stops event propagation and bubbling.
Parameters:
Name Type Description
event Event The keyboard event that fired.
Inherited From:
Source:

unfocus()

Inherited From:
Source:

unpost()

Removes element from page.
Overrides:
Implements:
Source:

up(event)

Navigation on upwards arrow key pressed.
Parameters:
Name Type Description
event KeyboardEvent The keyboard event that fired.
Inherited From:
Implements:
Source: