Your search did not match any results.


API Reference
The dxSlider widget allows an end-user to specify a numeric value within a specified range. Slider range boundaries are specified by the min and max options.
Copy to Codepen
$(function(){ $("#slider-simple").dxSlider({ min: 0, max: 100, value: 90, }); $("#slider-with-label").dxSlider({ min: 0, max: 100, value: 50, label: { visible: true, format: function(value) { return value + "%"; }, position: "top" } }); $("#slider-with-tooltip").dxSlider({ min: 0, max: 100, value: 35, rtlEnabled: false, tooltip: { enabled: true, format: function (value) { return value + "%"; }, showMode: "always", position: "bottom" } }); $("#slider-with-hide-range").dxSlider({ min: 0, max: 100, value: 20, showRange: false }); $("#slider-with-step").dxSlider({ min: 0, max: 100, value: 10, step: 10, tooltip: { enabled: true } }); $("#slider-disabled").dxSlider({ min: 0, max: 100, value: 50, disabled: true }); var handlerSlider = $("#handler-slider").dxSlider({ min: 0, max: 100, value: 10, onValueChanged: function(data) { sliderValue.option("value", data.value); } }).dxSlider("instance"); var sliderValue = $("#slider-value").dxNumberBox({ value: 10, min: 0, max: 100, showSpinButtons: true, onValueChanged: function(data) { handlerSlider.option("value", data.value); } }).dxNumberBox("instance"); });
<!DOCTYPE html> <html xmlns=""> <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> <link rel="stylesheet" type="text/css" href="" /> <link rel="stylesheet" type="text/css" href="" /> <link rel="dx-theme" data-theme="generic.light" href="" /> <link rel="dx-theme" data-theme="android5.light" href="" /> <link rel="dx-theme" data-theme="ios7.default" href="" /> <link rel="dx-theme" data-theme="" href="" /> <link rel="dx-theme" data-theme="win10.white" href="" /> <script src=""></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 class="form"> <div class="dx-fieldset"> <div class="dx-field"> <div class="dx-field-label">Default mode</div> <div class="dx-field-value"> <div id="slider-simple"></div> </div> </div> <div class="dx-field custom-height-slider"> <div class="dx-field-label">With labels</div> <div class="dx-field-value"> <div id="slider-with-label"></div> </div> </div> <div class="dx-field custom-height-slider"> <div class="dx-field-label">With tooltip</div> <div class="dx-field-value"> <div id="slider-with-tooltip"></div> </div> </div> <div class="dx-field"> <div class="dx-field-label">Without range highlighting</div> <div class="dx-field-value"> <div id="slider-with-hide-range"></div> </div> </div> <div class="dx-field"> <div class="dx-field-label">With discrete step</div> <div class="dx-field-value"> <div id="slider-with-step"></div> </div> </div> <div class="dx-field"> <div class="dx-field-label">Disabled</div> <div class="dx-field-value"> <div id="slider-disabled"></div> </div> </div> </div> <div class="dx-fieldset"> <div class="dx-fieldset-header">Event Handling and API</div> <div class="dx-field"> <div id="handler-slider"></div> </div> <div class="dx-field"> <div class="dx-field-label">Slider value</div> <div class="dx-field-value"> <div id="slider-value"></div> </div> </div> </div> </div> </div> </body> </html>
.custom-height-slider { height: 75px; }