Range

Range

new Range(element, options)

Source:
Parameters:
NameTypeDescription
elementHTMLElement

DOM element for component instantiation and scope

optionsObject
Properties
NameTypeDescription
rangeInputSelectorString

Selector for the range input

currentValueSelectorString

Selector for the current value area

bubbleSelectorString

Selector for the value bubble

attachChangeListenerBoolean

Whether or not to bind change events on range

attachHoverListenerBoolean

Whether or not to bind hover events

Classes

Range

Methods

destroy()

Description:
  • Destroy component.

Source:

handleChange()

Description:
  • Display value when changed

Source:

handleHoverOn()

Description:
  • Handle mouse hover

Source:

init()

Description:
  • Initialise component.

Source:

placeBubble()

Description:
  • Place value bubble

Source:

(static) autoInit(root) → {Range}

Source:
Parameters:
NameTypeDescription
rootHTMLElement

DOM element for component instantiation and scope

Returns:

An instance of Range.

Type
Range