Timeline

Timeline

new Timeline(element, options)

Source:
Parameters:
NameTypeDescription
elementHTMLElement

DOM element for component instantiation and scope

optionsObject
Properties
NameTypeDescription
buttonSelectorString
labelSelectorString
labelExpandedString
labelCollapsedString
attachClickListenerBoolean

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:
NameTypeDescription
rootHTMLElement

DOM element for component instantiation and scope

Returns:

An instance of Timeline.

Type
Timeline