RangeSlider

The dxRangeSlider is a widget that allows an end user to choose a range of numeric values.

Included in: dx.phonejs.js, dx.webappjs.js, dx.all.js
RangeSlider interactive configuration
Copy Code
Copy to Codepen
$("#rangeslider").dxRangeSlider({
});

You can create the widget using one of the following approaches.

  • jQuery
    Use the dxRangeSlider jQuery plug-in.

    HTML
    <div id="rangeSlider"></div>
    JavaScript
    $("#rangeSlider").dxRangeSlider({
        min: 0,
        max: 100
        step: 5,
        label: {
            visible: true,
            position: 'bottom'
        }
    });
  • Knockout
    Add a div element and apply the dxRangeSlider binding to this element.

    HTML
    <div data-bind="dxRangeSlider: {
        min: 0,
        max: 100
        step: 5,
        label: {
            visible: true,
            position: 'bottom'
        }
    }"></div>
  • AngularJS
    Add a div element and apply the dx-range-slider directive to this element.

    HTML
    <div dx-range-slider="{
        min: 0,
        max: 100
        step: 5,
        label: {
            visible: true,
            position: 'bottom'
        }
    }"></div>

Note that DevExtreme widgets require you to link the jQuery and Globalize libraries to your application. If you use the Knockout or AngularJS approach, the Knockout or AngularJS library is also required. For detailed information on linking these libraries to your project, refer to the Installation article.

You can find the detailed information on principles of working with the widget in the dxRangeSlider section of the Editor Widgets article.

View Demo

Show Example:
AngularJS
Knockout
jQuery

Configuration

An object defining configuration options for the dxRangeSlider widget.

Methods

This section describes the members used to manipulate the widget.

Events

This section describes events fired by this widget.