UNPKG

jqwidgets-scripts-custom

Version:

jQWidgets is an advanced jQuery, Angular 7, Vue, React, ASP .NET MVC, Custom Elements and HTML5 UI framework.

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