Range

Range

new Range(element, options)

Source:
Parameters:
Name Type Description
element HTMLElement

DOM element for component instantiation and scope

options Object
Properties
Name Type Description
rangeInputSelector String

Selector for the range input

currentValueSelector String

Selector for the current value area

bubbleSelector String

Selector for the value bubble

attachChangeListener Boolean

Whether or not to bind change events on range

attachHoverListener Boolean

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:
Name Type Description
root HTMLElement

DOM element for component instantiation and scope

Returns:

An instance of Range.

Type
Range