Angular RangeSlider - Handle the Value Change Event
To process new RangeSlider values, you need to handle the value change event. If the handling function is not going to be changed during the lifetime of the UI component, assign it to the onValueChanged property when you configure the UI component.
HTML
TypeScript
- <dx-range-slider
- [(start)]="startValue"
- [(end)]="endValue"
- (onValueChanged)="handleValueChange($event)">
- </dx-range-slider>
- import { DxRangeSliderModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- startValue = 20;
- endValue = 60;
- handleValueChange (e) {
- const newStartValue = e.start;
- const newEndValue = e.end;
- // Event handling commands go here
- };
- }
- @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.