JavaScript/jQuery RangeSlider - Overview

The RangeSlider is a UI component that allows an end user to choose a range of numeric values. Basically, the RangeSlider is the Slider UI component with a second handle added.

View Demo

The following code adds a simple RangeSlider to your page. The start and end properties specify the selected interval. The min and max properties limit the range of accepted values.

  • <template>
  • <DxRangeSlider
  • :min="0"
  • :max="100"
  • v-model:start="startValue"
  • v-model:end="endValue"
  • />
  • </template>
  •  
  • <script>
  • import 'devextreme/dist/css/dx.light.css';
  •  
  • import { DxRangeSlider } from 'devextreme-vue/range-slider';
  •  
  • export default {
  • components: {
  • DxRangeSlider
  • },
  • data() {
  • return {
  • startValue: 20,
  • endValue: 60
  • };
  • }
  • }
  • </script>

In addition, you can specify the step of RangeSlider values using the step property.

  • <template>
  • <DxRangeSlider
  • :min="0"
  • :max="100"
  • :step="10"
  • v-model:start="startValue"
  • v-model:end="endValue"
  • />
  • </template>
  •  
  • <script>
  • import 'devextreme/dist/css/dx.light.css';
  •  
  • import { DxRangeSlider } from 'devextreme-vue/range-slider';
  •  
  • export default {
  • components: {
  • DxRangeSlider
  • },
  • data() {
  • return {
  • startValue: 20,
  • endValue: 60
  • };
  • }
  • }
  • </script>
See Also