Skip to main content

Slider API overview

Methods#

NameDescription
blur()removes focus from a thumb of Slider
destructor()removes a slider instance and releases occupied resources
disable()disables slider
enable()enables slider
focus()sets focus to a thumb of Slider
getValue()returns the current value of Slider
isDisabled()checks whether Slider is disabled
paint()repaints Slider on a page
setValue()sets a value for the slider

Events#

NameDescription
blurfires when a thumb of Slider has lost focus
changefires on change of the slider value
focusfires when a thumb of Slider has received focus
keydown fires when any key is pressed and a thumb of Slider is in focus
mouseDownfires on pressing the left mouse button over the slider thumb
mouseUpfires on releasing the left mouse button over the slider thumb

Properties#

NameDescription
cssadds style classes for the component
helpMessageadds an icon with a question mark next to Slider
hiddenLabeladds a hidden label for a Slider that will be used while sending a form to the server
inverseenables/disables the inverse slider mode
labelspecifies the label of a slider
labelPositiondefines the position of a label of a slider
labelWidthsets the width of a label
majorTicksets interval of rendering numeric values on the slider scale
maxthe maximal value of slider
minthe minimal value of slider
modethe direction of the Slider scale
rangeenables/disables the possibility to select a range of values on the slider
stepthe step the slider thumb will be moved with
ticksets the interval of steps for rendering the slider scale
tickTemplatesets a template for rendering values on the scale
tooltipenables a tooltip on hovering over the slider thumb
valuethe value the thumb will be set at on initialization of the slider