Your search did not match any results.
RangeSlider

Range Slider

Documentation
The RangeSlider is a widget that allows a user to choose a range of numeric values.
Copy to CodePen
Apply
Reset
window.onload = function() { var startValue = ko.observable(10), endValue = ko.observable(90); var viewModel = { rangeSliderSimple: { min: 0, max: 100, start: 20, end: 60 }, rangeSliderWithLabel: { min: 0, max: 100, start: 35, end: 65, label: { visible: true, format: function(value) { return value + "%"; }, position: "top" } }, rangeSliderWithTooltip: { min: 0, max: 100, start: 15, end: 65, tooltip: { enabled: true, format: function (value) { return value + "%"; }, showMode: "always", position: "bottom" } }, rangeSliderWithHideRange: { min: 0, max: 100, start: 20, end: 80, showRange: false }, rangeSliderWithStep: { min: 0, max: 100, start: 20, end: 70, step: 10, tooltip: { enabled: true } }, rangeSliderDisabled: { min: 0, max: 100, start: 25, end: 75, disabled: true }, handlerRangeSlider: { min: 0, max: 100, start: startValue, end: endValue }, numberBoxStartValue: { value: startValue, min: 0, max: 100, showSpinButtons: true }, numberBoxEndValue: { value: endValue, min: 0, max: 100, showSpinButtons: true } }; ko.applyBindings(viewModel, document.getElementById("range-slider-demo")); };
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>DevExtreme Demo</title> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" /> <script src="js/jquery-3.1.0.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/knockout/3.4.0/knockout-min.js"></script> <link rel="stylesheet" type="text/css" href="https://cdn3.devexpress.com/jslib/17.1.7/css/dx.spa.css" /> <link rel="stylesheet" type="text/css" href="https://cdn3.devexpress.com/jslib/17.1.7/css/dx.common.css" /> <link rel="dx-theme" data-theme="generic.light" href="https://cdn3.devexpress.com/jslib/17.1.7/css/dx.light.css" /> <link rel="dx-theme" data-theme="android5.light" href="https://cdn3.devexpress.com/jslib/17.1.7/css/dx.android5.light.css" /> <link rel="dx-theme" data-theme="ios7.default" href="https://cdn3.devexpress.com/jslib/17.1.7/css/dx.ios7.default.css" /> <link rel="dx-theme" data-theme="win10.black" href="https://cdn3.devexpress.com/jslib/17.1.7/css/dx.win10.black.css" /> <link rel="dx-theme" data-theme="win10.white" href="https://cdn3.devexpress.com/jslib/17.1.7/css/dx.win10.white.css" /> <script src="https://cdn3.devexpress.com/jslib/17.1.7/js/dx.all.js"></script> <link rel="stylesheet" type ="text/css" href ="styles.css" /> <script src="index.js"></script> </head> <body class="dx-viewport"> <div class="demo-container"> <div id="range-slider-demo" class="form"> <div class="dx-fieldset"> <div class="dx-field"> <div class="dx-field-label">Default mode</div> <div class="dx-field-value"> <div data-bind="dxRangeSlider: rangeSliderSimple"></div> </div> </div> <div class="dx-field custom-height-slider"> <div class="dx-field-label">With labels</div> <div class="dx-field-value"> <div data-bind="dxRangeSlider: rangeSliderWithLabel"></div> </div> </div> <div class="dx-field custom-height-slider"> <div class="dx-field-label">With tooltips</div> <div class="dx-field-value"> <div data-bind="dxRangeSlider: rangeSliderWithTooltip"></div> </div> </div> <div class="dx-field"> <div class="dx-field-label">Without range highlighting</div> <div class="dx-field-value"> <div data-bind="dxRangeSlider: rangeSliderWithHideRange"></div> </div> </div> <div class="dx-field"> <div class="dx-field-label">With discrete step</div> <div class="dx-field-value"> <div data-bind="dxRangeSlider: rangeSliderWithStep"></div> </div> </div> <div class="dx-field"> <div class="dx-field-label">Disabled</div> <div class="dx-field-value"> <div data-bind="dxRangeSlider: rangeSliderDisabled"></div> </div> </div> </div> <div class="dx-fieldset"> <div class="dx-fieldset-header">Event Handling and API</div> <div class="dx-field"> <div data-bind="dxRangeSlider: handlerRangeSlider"></div> </div> <div class="dx-field"> <div class="dx-field-label">Start value</div> <div class="dx-field-value"> <div data-bind="dxNumberBox: numberBoxStartValue"></div> </div> </div> <div class="dx-field"> <div class="dx-field-label">End value</div> <div class="dx-field-value"> <div data-bind="dxNumberBox: numberBoxEndValue"></div> </div> </div> </div> </div> </div> </body> </html>
.custom-height-slider { height: 75px; }