DescriptionList

DescriptionList

new DescriptionList(element, options)

Source:
Parameters:
Name Type Description
element HTMLElement

DOM element for component instantiation and scope

options Object
Properties
Name Type Description
moreItemLabelSelector String

Selector for more button label attribute

listsSelector String

Selector for list element

visibleItemsSelector String

Selector to retrieve the number of visible items

attachClickListener Boolean

Whether or not to bind click events

Classes

DescriptionList

Methods

destroy()

Description:
  • Destroy component.

Source:

handleClickOnMore(e)

Description:
  • Expands the list of items.

Source:
Parameters:
Name Type Description
e Event

init()

Description:
  • Initialise component.

Source:

showHide()

Description:
  • showHide elements basing on user preference.

Source:

(static) autoInit(root) → {DescriptionList}

Source:
Parameters:
Name Type Description
root HTMLElement

DOM element for component instantiation and scope

Returns:

An instance of DescriptionList.

Type
DescriptionList