Name | Type | Default | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
animationDuration | Number | 100 | |||||||||
Sets or gets the snap to ticks and move on click animation duration in milliseconds. Code example
Set the
Get the
Try it: animationDuration is set to 1000
|
|||||||||||
disabled | Boolean | false | |||||||||
Sets or gets whether the range selector is disabled. Code example
Set the
Get the
Try it: disabled is set to true
|
|||||||||||
height | Number/String | 100 | |||||||||
Sets or gets the range selector's height.
Code example
Set the
Get the
Try it: height is set to 100
|
|||||||||||
labelFormat | String | null | |||||||||
Sets or gets the format of the labels.
Possible date formats:
Note: When the data type is date, the
Code example
Set the
Get the
Try it: labelFormat is set to 'p'
|
|||||||||||
labelPrecision | Number | 0 | |||||||||
If
Note: Code example
Set the
Get the
Try it: labelPrecision is set to 1
|
|||||||||||
labelRenderer | callback function | null | |||||||||
A custom callback function for rendering the labels. Has one argument - the value of the label. Code example
Set the
|
|||||||||||
moveOnClick | Boolean | true | |||||||||
Sets or gets whether the position of the slider can be changed by clicking on the
range selector. Code example
Set the
Get the
Try it: moveOnClick is set to false
|
|||||||||||
markerRenderer | callback function | null | |||||||||
A custom callback function for rendering the markers. Has two arguments - the value of the marker and the position of the marker - either "left" or "right". Code example
Set the
|
|||||||||||
markerPrecision | Number | 2 | |||||||||
If
Note: Code example
Set the
Get the
Try it: markerPrecision is set to 1
|
|||||||||||
majorLabelRenderer | callback function | null | |||||||||
A custom callback function for rendering the major labels. Has two arguments - the value of the major label and the date object. Note: major labels are applied only if the data type is date. Code example
Set the
|
|||||||||||
markerFormat | String | null | |||||||||
Sets or gets the format of the markers.
Possible date formats:
Note: When the data type is date, the
Code example
Set the
Get the
Try it: markerFormat is set to 'p'
|
|||||||||||
majorTicksInterval | Number/Object/String | 10 | |||||||||
Sets or gets the interval between major ticks.
Code example
Set the
Get the
Try it: majorTicksInterval is set to 10
|
|||||||||||
minorTicksInterval | Number/Object/String | 5 | |||||||||
Sets or gets the interval between minor ticks.
Code example
Set the
Get the
Try it: minorTicksInterval is set to 1
|
|||||||||||
max | Number/Date object/Date string | 100 | |||||||||
Sets or gets the maximum value of the range selector scale.
Code example
Set the
Get the
Try it: max is set to 95
|
|||||||||||
min | Number/Date object/Date string | 0 | |||||||||
Sets or gets the minimum value of the range selector scale.
Code example
Set the
Get the
Try it: min is set to 5
|
|||||||||||
padding | Number/String | "auto" | |||||||||
Sets or gets the range selector's padding.
Code example
Set the
Get the
Try it: padding is set to "0px"
|
|||||||||||
range | Object | { from: 0, to: Infinity, min: 0, max: Infinity } | |||||||||
An object containing the following properties:
Code example
Set the
Get the
Try it: range is set to from 10 to 50
|
|||||||||||
resizable | Boolean | true | |||||||||
Sets or gets whether the range selector's slider can be resized.
Note: If Code example
Set the
Get the
Try it: resizable is set to false
|
|||||||||||
rtl | Boolean | false | |||||||||
Sets or gets whether the jqxRangeSelector's right-to-left support is enabled. Code example
Set the
Get the
Try it: rtl is set to true
|
|||||||||||
showMinorTicks | Boolean | false | |||||||||
Sets or gets whether minor ticks will be displayed. Code example
Set the
Get the
Try it: showMinorTicks is set to true
|
|||||||||||
snapToTicks | Boolean | true | |||||||||
Sets or gets whether the slider will snap to the major and minor ticks. Code example
Set the
Get the
Try it: snapToTicks is set to false
|
|||||||||||
showMajorLabels | Boolean | false | |||||||||
Sets or gets whether the major labels will be shown. Note: major labels are applied only if the data type is date. Code example
Set the
Get the
Try it: showMajorLabels is set to true
|
|||||||||||
showMarkers | Boolean | true | |||||||||
Sets or gets whether the markers will be shown. Code example
Set the
Get the
Try it: showMarkers is set to false
|
|||||||||||
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'
|
|||||||||||
width | Number/String | 400 | |||||||||
Sets or gets the range selector's width.
Code example
Set the
Get the
Try it: width is set to 500
|
|||||||||||
Events |
|||||||||||
change | Event | ||||||||||
This event is triggered when the slected range is changed. Code example
Bind to the
|
|||||||||||
Methods |
|||||||||||
destroy | Method | ||||||||||
Removes the range selector from the DOM.
None Code example
Invoke the
Try it: destroy the jqxRangeSelector.
|
|||||||||||
getRange | Method | ||||||||||
Gets the selected range. Returns an object with two fields. Range object fields:
Object Code example
Invoke the
|
|||||||||||
render | Method | ||||||||||
Renders the range selector.
None Code example
Invoke the
Try it: renders the jqxRangeSelector.
|
|||||||||||
refresh | Method | ||||||||||
Refreshes the range selector.
None Code example
Invoke the
Try it: refreshes the jqxRangeSelector.
|
|||||||||||
setRange | Method | ||||||||||
Sets the selected range.
None Code example
Invoke the
|