Slider
Value members
Abstract methods
Calculate distance for slider
Calculate distance for slider
- Value Params
- event
The event that caused this function to run.
- Returns
The current position of the Slider. - position.x for vertical
Slider
s - position.y for horizontalSlider
s
Create the Slider
s DOM element.
Create the Slider
s DOM element.
- Value Params
- [attributes={}]
list of attributes in Object form.
- [props={}]
List of properties in Object form.
- type
Type of element to create.
- Returns
The element that gets created.
Disable controls for this slider if they are enabled
Disable controls for this slider if they are enabled
Enable controls for this slider if they are disabled
Enable controls for this slider if they are disabled
Are controls are currently enabled for this slider or not.
Are controls are currently enabled for this slider or not.
- Returns
true if controls are enabled, false otherwise
Listener for click events on slider, used to prevent clicks from bubbling up to parent elements like button menus.
Listener for click events on slider, used to prevent clicks from bubbling up to parent elements like button menus.
- Value Params
- event
Event that caused this object to run
Handle mousedown
or touchstart
events on the Slider
.
Handle mousedown
or touchstart
events on the Slider
.
- Value Params
- event
mousedown
ortouchstart
event that triggered this function listens mousedown listens touchstart fires Slider#slideractive
Handle the mousemove
, touchmove
, and mousedown
events on this Slider
.
The mousemove
and touchmove
events will only only trigger this function during
mousedown
and touchstart
. This is due to [[Slider#handleMouseDown]]
and
[[Slider#handleMouseUp]]
.
Handle the mousemove
, touchmove
, and mousedown
events on this Slider
.
The mousemove
and touchmove
events will only only trigger this function during
mousedown
and touchstart
. This is due to [[Slider#handleMouseDown]]
and
[[Slider#handleMouseUp]]
.
- Value Params
- event
mousedown
,mousemove
,touchstart
, ortouchmove
event that triggered this function listens mousemove listens touchmove
Handle mouseup
or touchend
events on the Slider
.
Handle mouseup
or touchend
events on the Slider
.
- Value Params
- event
The
mouseup
event that caused this to run. listens touchend listens mouseup fires Slider#sliderinactive
Update the progress bar of the Slider
.
Update the progress bar of the Slider
.
- Returns
The percentage of progress the progress bar represents as a number from 0 to 1.