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

sortLabelSelectorAsc String

Selector for sorting button label ascending

sortLabelSelectorDesc String

Selector for sorting button label descending

sortLabelSelectorDefault String

Selector for sorting button label default

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