DevExtreme Angular - Overview
The Slider is a widget that allows an end user to set a numeric value on a continuous range of possible values.
The following code adds a simple Slider to your page. The min and max options limit the range of accepted values. The value sets the initial value for the widget.
HTML
TypeScript
- <dx-slider
- [min]="0"
- [max]="100"
- [(value)]="value">
- </dx-slider>
- import { DxSliderModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- value = 25;
- }
- @NgModule({
- imports: [
- // ...
- DxSliderModule
- ],
- // ...
- })
In addition, you can specify the step of Slider values using the step option.
HTML
TypeScript
- <dx-slider
- [min]="0"
- [max]="100"
- [step]="10"
- [(value)]="value">
- </dx-slider>
- import { DxSliderModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- value = 25;
- }
- @NgModule({
- imports: [
- // ...
- DxSliderModule
- ],
- // ...
- })
See Also
- Configure a Widget: Angular | Vue | React | jQuery | AngularJS | Knockout | ASP.NET MVC 5 | ASP.NET Core
- Slider - Customize Widget Appearance
- Slider - Handle the Value Change Event
- Slider API Reference
- RangeSlider - Overview
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.