Skip to content

SliderComponent

Extends

Constructors

new SliderComponent()

new SliderComponent(containerEl): SliderComponent

Parameters

containerEl: HTMLElement

Returns

SliderComponent

Overrides

ValueComponent.constructor

Properties

disabled

disabled: boolean

Inherited from

ValueComponent.disabled


sliderEl

sliderEl: HTMLInputElement

Methods

getValue()

getValue(): number

Returns

number

Overrides

ValueComponent.getValue


getValuePretty()

getValuePretty(): string

Returns

string


onChange()

onChange(callback): this

Parameters

callback

Returns

this


registerOptionListener()

registerOptionListener(listeners, key): this

Parameters

listeners: Record<string, (value?) => number>

key: string

Returns

this

Inherited from

ValueComponent.registerOptionListener


setDisabled()

setDisabled(disabled): this

Parameters

disabled: boolean

Returns

this

Overrides

ValueComponent.setDisabled


setDynamicTooltip()

setDynamicTooltip(): this

Returns

this


setInstant()

setInstant(instant): this

Parameters

instant: boolean

whether or not the value should get updated while the slider is dragging

Returns

this


setLimits()

setLimits(min, max, step): this

Parameters

min: number

max: number

step: number | "any"

Returns

this


setValue()

setValue(value): this

Parameters

value: number

Returns

this

Overrides

ValueComponent.setValue


showTooltip()

showTooltip(): void

Returns

void


then()

then(cb): this

Facilitates chaining

Parameters

cb

Returns

this

Inherited from

ValueComponent.then