Table

Table

new Table(element, options)

Source:
Parameters:
Name Type Description
element HTMLElement

DOM element for component instantiation and scope

options Object
Properties
Name Type Description
sortSelector String

Selector for toggling element

sortLabelSelector String

Selector for sorting button label

attachClickListener Boolean

Classes

Table

Members

handleClickOnSort

Source:

Methods

destroy()

Description:
  • Destroy component.

Source:

init()

Description:
  • Initialise component.

Source:

(static) autoInit(root) → {Table}

Source:
Parameters:
Name Type Description
root HTMLElement

DOM element for component instantiation and scope

Returns:

An instance of table.

Type
Table

(static) createSortIcon() → {HTMLElement}

Source:
Returns:
Type
HTMLElement