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

attachChangeListenerBoolean

Whether or not to bind change events on range

Classes

Range

Methods

destroy()

Description:
  • Destroy component.

Source:

handleChange()

Description:
  • Display value when changed

Source:

init()

Description:
  • Initialise component.

Source:

(static) autoInit(root) → {Range}

Source:
Parameters:
NameTypeDescription
rootHTMLElement

DOM element for component instantiation and scope

Returns:

An instance of Range.

Type
Range