Name | Type | Default | ||||||
---|---|---|---|---|---|---|---|---|
buttonsPosition | String | both | ||||||
Sets or gets scroll buttons position. Possible Values:
Code examples
Set the
Get the
Try it: buttonsPosition is set to 'left'
|
||||||||
disabled | Boolean | false | ||||||
Sets or gets whether the slider is disabled. Code examples
Set the
Get the
Try it: disabled is set to true
|
||||||||
height | Number/String | 35 | ||||||
Sets or gets the slider's height. Code examples
Set the
Get the
Try it: height is set to 50
|
||||||||
layout | String | "normal" | ||||||
Sets or gets the slider's layout. Possible Values:
Code examples
Set the
Get the
Try it: layout is set to 'reverse'
|
||||||||
mode | String | default | ||||||
Sets or gets slider's mode. Possible Values:
Code examples
Set the
Get the
Try it: mode is set to 'fixed'
|
||||||||
minorTicksFrequency | Number | 1 | ||||||
Sets or gets slider's minor ticks frequency. Code examples
Set the
Get the
|
||||||||
minorTickSize | Number | 4 | ||||||
Sets or gets slider's minor ticks size. Code examples
Set the
Get the
|
||||||||
max | Number | 10 | ||||||
Sets or gets slider's maximum value. Code examples
Set the
Get the
Try it: max is set to 15
|
||||||||
min | Number | 0 | ||||||
Sets or gets slider's minimum value. Code examples
Set the
Get the
Try it: min is set to 5
|
||||||||
rangeSlider | Bool | false | ||||||
Sets or gets whether the slider is displayed as a range slider and has 2 thumbs. This allows the user to select a range of values. By default, end-users can select only a single value. Code examples
Set the
Get the
Try it: rangeSlider is set to true
|
||||||||
rtl | Boolean | false | ||||||
Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. Code example
Set the
Get the
Try it: rtl is set to true
|
||||||||
step | Number | 1 | ||||||
Sets or gets the slider's step when the user is using the keyboard arrows, slider increment and decrement buttons or the mouse wheel for changing the slider's value. Code examples
Set the
Get the
Try it: step is set to 2
|
||||||||
showTicks | Boolean | true | ||||||
Sets or gets whether ticks will be shown. Code examples
Set the
Get the
Try it: showTicks is set to false
|
||||||||
showMinorTicks | Boolean | false | ||||||
Sets or gets whether minor ticks will be shown. Code examples
Set the
Get the
|
||||||||
showTickLabels | Boolean | false | ||||||
Sets or gets whether major tick labels will be shown. Code examples
Set the
Get the
|
||||||||
showButtons | Bool | true | ||||||
Sets or gets whether the scroll buttons will be shown. Code examples
Set the
Get the
Try it: showButtons is set to false
|
||||||||
showRange | Bool | true | ||||||
Sets or gets whether the slider range background is displayed. This is the fill between the slider's left button and the slider's thumb to indicate the selected value. In range slider mode, the space between the handles is filled to indicate the selected values. Code examples
Set the
Get the
Try it: showRange is set to false
|
||||||||
template | String | 'default' | ||||||
Determines the template as an alternative of the default styles. Possible Values:
Code examples
Set the
Get the
Try it: template is set to 'success'
|
||||||||
theme | String | '' | ||||||
Sets the widget's theme. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. In order to set a theme, you need to do the following:
Try it: theme is set to 'energyblue'
|
||||||||
ticksPosition | String | both | ||||||
Sets or gets slider's ticks position. Possible Values:
Code examples
Set the
Get the
Try it: ticksPosition is set to 'bottom'
|
||||||||
ticksFrequency | Number | 2 | ||||||
Sets or gets slider's major ticks frequency. Code examples
Set the
Get the
Try it: ticksFrequency is set to 1
|
||||||||
tickSize | Number | 7 | ||||||
Sets or gets slider's major ticks size. Code examples
Set the
Get the
|
||||||||
tickLabelFormatFunction | Function | null | ||||||
Sets or gets the major ticks labels formatting function. Code examples
Set the
Get the
|
||||||||
tooltip | Boolean | false | ||||||
Sets or gets whether the slider tooltip will be shown. Code examples
Set the
Get the
Try it: tooltip is set to true
|
||||||||
tooltipHideDelay | Numer | 500 | ||||||
Sets or gets the tooltip's hide delay. Code examples
Set the
Get the
Try it: tooltipHideDelay is set to 2000
|
||||||||
tooltipPosition | String | "near" | ||||||
Sets or gets the tooltip's position. Possible values: "near", "far" Code examples
Set the
Get the
Try it: tooltipPosition is set to "far"
|
||||||||
tooltipFormatFunction | Function | null | ||||||
Sets or gets the tooltip's tooltip formatting. Code examples
Set the
Get the
|
||||||||
value | Number/Object | 0 | ||||||
Sets or gets slider's value. This poperty will be an object with the following structure { rangeStart: range_start, rangeEnd: range_end } if the slider is range slider otherwise it's going to be a number. Code examples
Set the
Get the
Try it: value is set to 5
|
||||||||
values | Array | [0, 10] | ||||||
Sets or gets range slider's values.The 'rangeSlider' property should be set to true. Code examples
Set the
Get the
Try it: values is set to [5,15]
|
||||||||
width | Number/String | 300 | ||||||
Sets or gets the slider's width. Code examples
Set the
Get the
Try it: width is set to 300
|
||||||||
Events |
||||||||
change | Event | |||||||
This event is triggered when the value of the slider is changed. Code examples
Bind to the
|
||||||||
created | Event | |||||||
This event is triggered when the jqxSlider is created. Code examples
Bind to the
|
||||||||
slide | Event | |||||||
This event is triggered when the user is dragging the sliders thumb. Code examples
Bind to the
|
||||||||
slideStart | Event | |||||||
This event is triggered when the user start dragging slider's thumb. Code examples
Bind to the
|
||||||||
slideEnd | Event | |||||||
This event is triggered when the user have dragged the slider's thumb and drop it. Code examples
Bind to the
|
||||||||
Methods |
||||||||
destroy | Method | |||||||
Destroys the widget.
None Code examples
Invoke the
Try it: destroy the jqxSlider.
|
||||||||
decrementValue | Method | |||||||
Decreases the jqxSlider's value with the value of the 'step' property.
None Code example
Invoke the
|
||||||||
disable | Method | |||||||
Disabling the slider.
None Code example
Invoke the
Try it: disables the jqxSlider.
|
||||||||
enable | Method | |||||||
Enables the slider.
None Code example
Invoke the
Try it: enables the jqxSlider.
|
||||||||
focus | Method | |||||||
Focuses the widget.
None Code examples
Invoke the
Try it: focuses the jqxSlider.
|
||||||||
getValue | Method | |||||||
Gets the slider's value. The returned value is a Number or an Object. If the Slider is a range slider, the method returns an Object with the following fields: rangeStart - the range's start value and rangeEnd - the range's end value..
Number Code example
Invoke the
Try it: gets the value in the jqxSlider.
|
||||||||
incrementValue | Method | |||||||
Increases the jqxSlider's value with the value of the 'step' property.
None Code example
Invoke the
|
||||||||
setValue | Method | |||||||
Sets the jqxSlider's value. When the slider is not in range slider mode, the required parameter for the value is a number which should be in the 'min' - 'max' range. Possible value types in range slider mode- array, object or two numbers.
None Code example
Invoke the
Try it: sets the value in the jqxSlider.
|
||||||||
val | Method | |||||||
Sets or gets the value.
String Code example
Invoke the
// Get the value using jQuery's val()
// Set value.
// Set value using jQuery's val().
Try it: sets the value in the jqxSlider.
|