Timeline

Timeline

new Timeline(element, options)

Source:
Parameters:
Name Type Description
element HTMLElement

DOM element for component instantiation and scope

options Object
Properties
Name Type Description
buttonSelector String
labelSelector String
labelExpanded String
labelCollapsed String
attachClickListener Boolean

Whether or not to bind click events

Classes

Timeline

Methods

destroy()

Description:
  • Destroy component.

Source:

handleClickOnButton()

Description:
  • Expand timeline if not such already.

Source:

init()

Description:
  • Initialise component.

Source:

(static) autoInit(root) → {Timeline}

Source:
Parameters:
Name Type Description
root HTMLElement

DOM element for component instantiation and scope

Returns:

An instance of Timeline.

Type
Timeline