Angular ProgressBar - Handle the Value Change Event

To process a new ProgressBar value, 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-progress-bar
  • [(value)]="value"
  • (onValueChanged)="handleValueChange($event)">
  • </dx-progress-bar>
  • import { DxProgressBarModule } from "devextreme-angular";
  • // ...
  • export class AppComponent {
  • value = 49;
  •  
  • handleValueChange (e) {
  • const previousValue = e.previousValue;
  • const newValue = e.value;
  • // Event handling commands go here
  • };
  • }
  • @NgModule({
  • imports: [
  • // ...
  • DxProgressBarModule
  • ],
  • // ...
  • })
See Also