SliderComponent
Extends
ValueComponent
<number
>
Constructors
new SliderComponent()
new SliderComponent(
containerEl
):SliderComponent
Parameters
• containerEl: HTMLElement
Returns
Overrides
Properties
disabled
disabled:
boolean
Inherited from
sliderEl
sliderEl:
HTMLInputElement
Methods
getValue()
getValue():
number
Returns
number
Overrides
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
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
showTooltip()
showTooltip():
void
Returns
void
then()
then(
cb
):this
Facilitates chaining
Parameters
• cb
Returns
this