UNPKG

jqwidgets-framework

Version:

jQWidgets is an advanced Angular, Vue, Blazor, React, Web Components, jquery, ASP .NET MVC, Custom Elements and HTML5 UI framework.

19 lines (14 loc) 559 B
import { Component, ViewChild } from '@angular/core'; import { jqxRepeatButtonComponent } from 'jqwidgets-ng/jqxrepeatbutton'; @Component({ selector: 'app-root', templateUrl: './app.component.html' }) export class AppComponent { @ViewChild('myProgressBar', { static: false }) myProgressBar: jqxRepeatButtonComponent repeatOnClick(): void { let currentValue = this.myProgressBar.value(); currentValue += 1; this.myProgressBar.setOptions({ animationDuration: 0, value: currentValue }); } }