Angular 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.
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.
HTML
TypeScript
- <dx-range-slider
- [min]="0"
- [max]="100"
- [(start)]="startValue"
- [(end)]="endValue">
- </dx-range-slider>
- import { DxRangeSliderModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- startValue = 20;
- endValue = 60;
- }
- @NgModule({
- imports: [
- // ...
- DxRangeSliderModule
- ],
- // ...
- })
In addition, you can specify the step of RangeSlider values using the step property.
HTML
TypeScript
- <dx-range-slider
- [min]="0"
- [max]="100"
- [step]="10"
- [(start)]="startValue"
- [(end)]="endValue">
- </dx-range-slider>
- import { DxRangeSliderModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- startValue = 20;
- endValue = 60;
- }
- @NgModule({
- imports: [
- // ...
- DxRangeSliderModule
- ],
- // ...
- })
See Also
Feel free to share topic-related thoughts here.
If you have technical questions, please create a support ticket in the DevExpress Support Center.
Thank you for the feedback!
If you have technical questions, please create a support ticket in the DevExpress Support Center.