Range Sliders are great for allowing users to narrow and filter down large sets of data. They're often found in places such as online marketplaces, where an app might offer the ability to search for products based on a certain minimum and maximum price range.
Properties allow you to edit the Range Slider widget, connect it with other widgets and customize the user actions.
|Min Value||Formatting||The starting/smallest possible value of the slider. The value may be negative and/or include decimals, however it must always be less than the Max Value. (number)|
|Max Value||Formatting||The ending/largest possible value of the slider. The value may be negative and/or include decimals, however it must always be greater than the Min Value. (number)|
|Step Size||Formatting||The increment by which the user can adjust the slider's value. This increment must be at least 0.1, and can't be greater than the Max Value. (number)|
|Min Range||Formatting||The minimum distance allowed between the selected values. (number)|
|Default Start Value||Formatting||Sets an initial value to be captured as the starting value of the range, unless it's changed by the user. This value should be between the slider's Min Value and Max Value, and should be less than its Default End Value. (number)|
|Default End Value||Formatting||Sets an initial value to be captured as the ending value of the range, unless it's changed by the user. This value should be between the slider's Min Value and Max Value, and should be greater than its Default Start Value. (number)|
|Marks||Formatting||An array of objects with keys |
|Tooltip Always On||Formatting||Hovering over the slider with the mouse cursor shows the slider's selected value in a tooltip; enabling this setting forces the tooltip to always be visible, regardless of the cursor's location. (bool)|
|start||Binding||Represents the beginning value of the user's selected range. (number)|
|end||Binding||Represents the ending value of the user's selected range. (number)|
These properties allow you to perform formatting changes or bind it to any other widget in queries or JS objects.
Min Value / Max Value
These properties represent the lower and upper bounds of values that can be selected with the slider. The Min Value determines the value at the far left end of the widget, and the Max Value determines the value at the far right end. Negative and/or decimal values are allowed, however the Min Value must always be less than the Max Value.
Step Size property determines the smallest increment by which the user may adjust the value selected by the slider. Smaller values for this property (can't be smaller than 0.1) result in finer control of the selection, whereas larger step sizes result in coarser control.
This property represents the minimum difference allowed between the low and high ends of the user's selection. This value can't be less than 0.1.
Default Start / End Value
Sets an initial start/end value for the range to be captured as user input unless it's changed by the user.
Marks appear along the bottom of the widget as labels for the different values along the slider. Using the
Marks property, which is an array of objects with keys
value, you can define where these marks appear and how they're labeled. Each mark appears below the place where its
value is located on the slider, and has the text from its corresponding
Tooltip Always On
When this property is enabled, the widget's tooltip is always visible, and shows the currently selected value on the slider. If this setting is turned off, the tooltip is only visible when the user is hovering over the slider with their mouse cursor.
Start / End
These binding properties allow you to access the values that have been selected with the Range Slider. For example, if the selected slider range is
80, then the
end values would look like:
Each variant of the Slider widget has events that are called when the user adjusts the widget's values:
Range sliders are a great choice when you have a large dataset, but only wish to see a portion of it at a time. They provide an easy way to choose exactly what part you'd like to use, and offer a visual representation of the size of your selection relative to the whole.