SliderInteraction
Inherits: Enum
Defines how users can interact with a Slider to change its value.
Each mode controls whether taps and drag gestures on the slider track are accepted, and whether interaction is restricted to dragging the thumb.
Properties
-
SLIDE_ONLY–Allows only sliding interaction to change the value.
-
SLIDE_THUMB–Allows interaction only by dragging the slider thumb.
-
TAP_AND_SLIDE–Allows the user to interact with a slider by tapping or sliding anywhere on the track.
-
TAP_ONLY–Allows only tap interaction on the slider track.
Properties#
SLIDE_ONLY = 'slideOnly'
class-attribute
instance-attribute
#
Allows only sliding interaction to change the value.
Track taps are ignored.
SLIDE_THUMB = 'slideThumb'
class-attribute
instance-attribute
#
Allows interaction only by dragging the slider thumb.
Taps and drag/slide gestures that begin on the track are ignored.
TAP_AND_SLIDE = 'tapAndSlide'
class-attribute
instance-attribute
#
Allows the user to interact with a slider by tapping or sliding anywhere on the track.
Essentially all possible interactions are allowed.
It is different from SLIDE_ONLY, in that when you try
to slide anywhere other than the thumb, the thumb will move to the first
point of contact.
TAP_ONLY = 'tapOnly'
class-attribute
instance-attribute
#
Allows only tap interaction on the slider track.
Drag/sliding gestures are ignored.