Create a new slider and initialize it.
The options for the slider
Optionalcallback?: ((value: number, currentValue: number) => void) | nullThe function to call when the slider is changed
Optionallabel?: stringThe label text
Optionalmax?: numberThe maximum value
Optionalmin?: numberThe minimum value
Optionalstep?: numberThe step size
Optionalvalue?: numberThe initial value
Do the necessary initialization.
Add one or more classes to an element.
Bind a slider to an object property.
The object to bind the property to.
The property to bind.
Destroy the element
Get the current value of the slider.
Add a change event listener to the slider.
The function to call when the slider is changed.
Add a click event listener to the widget.
The function to call when the widget is clicked.
Remove one or more classes from an element.
Set the content of the widget.
The value to set the content to.
Set the label of the slider.
The new label text.
Set the maximum value of the slider.
The new maximum value.
Set the minimum value of the slider.
The new minimum value.
Set the step size of the slider.
The new step size.
Set the text of the widget.
The value to set the text to.
A class representing a slider where you can select a value from a specific range.
@ extends Widget implements ValueWidget