Configuring a basic slider
Additional functionality, such as vertical sliders, multiple handles, and stepping can also be configured using an object literal, passed into the widget method when the slider is initialized. The options that can be used in conjunction with the slider widget are listed in the following table:
Option |
Default value |
Usage |
---|---|---|
|
|
Enables a smooth animation of the slider handle when the track is clicked. |
|
|
Disables the widget when it is initialized. |
|
|
Sets the maximum value of the slider. |
|
|
Sets the minimum value of the slider. |
|
|
Sets the axis along which the slider thumb is moved. This can accept the strings vertical or horizontal. |
|
|
Creates a styleable range of elements between them. |
|
|
Sets the distance of the step that the handle will take along the track. The max value must be equally divisible by the supplied number. |
|
|
Sets the value of the... |