Slider (Multirange)

Slider (Multirange)

Overview

A multi-range or multi-thumb slider is built on the same concept as a simple slider except that there are two sliding controls, to allow users to set a minimum value and a maximum value. Mobile support is a problem with multi-range sliders, so it is wise to supplement the slider with editable text fields or other similar controls that give users an alternative way to specify the range.



Turn on a screen reader to experience this example in action.

Attribute/Option Description
sliderColor This attribute/option specifies color for the main slider / ruler. If this option is not specified, a default color is used.
markerColor This attribute/option specifies color for the marker. If this option is not specified, a default color is used.
getTextValue This option specifies a function that will convert a value into required text that could be more meaningful for scale markers. If this option is not specified, value will be displayed in integer form.
getTextValueDesc This option specifies a function that will convert a value into required text description that could be more meaningful for screen readers. If this option is not specified, value will be displayed in integer form.
noOfScales This option specifies number of markings/scales to be displayed on the slider. By default, it will have 6 markings.
width This attribute/option specifies the width of the slider widget. If this attribute/ option is not specified, width will be set with a default value.
ariaDescribedBy This attribute/option specifies id(s) of the label(s)/heading(s)/other element(s) that describe the sliders. If this attribute/ option is not specified, the sliders will not have the ARIA description.
Please Note: This option does not work with Narrator / Microsoft Edge browser combination.

Timeframe for an audio clip

1:30 3:00 0:00 1:00 2:00 3:00 4:00 5:00

Price range for purchasing a house

$200,000.00 $600,000.00 $0.00 $200,000.00 $400,000.00 $600,000.00 $800,000.00 $1,000,000.00

Month range

Feb Sep Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec