ClickableRail Class
Slider extension that allows clicking on the Slider's rail element, triggering the thumb to align with the location of the click.
Methods
Attributes
clickableRail
Boolean
Enable or disable clickable rail support.
Default: true
Fires event clickableRailChange
Fires when the value for the configuration attribute clickableRail
is
changed. You can listen for the event using the on
method if you
wish to be notified before the attribute's value has changed, or
using the after
method if you wish to be notified after the
attribute's value has changed.
Parameters:
-
e
EventFacadeAn Event Facade object with the following attribute-specific properties added:
Events
railMouseDown
Broadcasts when the rail has received a mousedown event and
triggers the thumb positioning. Use
e.preventDefault()
or
set("clickableRail", false)
to prevent
the thumb positioning.