API Docs for: 3.18.1

ClickableRail Class

Module: clickable-rail
Parent Module: slider

Slider extension that allows clicking on the Slider's rail element, triggering the thumb to align with the location of the click.

Item Index

Methods

Attributes

Events

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 EventFacade
    An Event Facade object with the following attribute-specific properties added:
    • prevVal Any
      The value of the attribute, prior to it being set.
    • newVal Any
      The value the attribute is to be set to.
    • attrName String
      The name of the attribute being set.
    • subAttrName String
      If setting a property within the attribute's value, the name of the sub-attribute property being set.

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.