Table

Table

new Table(element, options)

Source:
Parameters:
NameTypeDescription
elementHTMLElement

DOM element for component instantiation and scope

optionsObject
Properties
NameTypeDescription
sortSelectorString

Selector for toggling element

sortLabelSelectorString

Selector for sorting button label

attachClickListenerBoolean

Classes

Table

Members

handleClickOnSort

Source:

Methods

destroy()

Description:
  • Destroy component.

Source:

init()

Description:
  • Initialise component.

Source:

(static) autoInit(root) → {Table}

Source:
Parameters:
NameTypeDescription
rootHTMLElement

DOM element for component instantiation and scope

Returns:

An instance of table.

Type
Table

(static) createSortIcon() → {HTMLElement}

Source:
Returns:
Type
HTMLElement