jqwidgets-framework
Version:
jQWidgets is an advanced Angular, Vue, Blazor, React, Web Components, jquery, ASP .NET MVC, Custom Elements and HTML5 UI framework.
37 lines (30 loc) • 934 B
text/typescript
import { Component, OnInit, Input, ViewChild } from '@angular/core';
import { jqxProgressBarComponent } from 'jqwidgets-scripts/jqwidgets-ts/angular_jqxprogressbar';
({
selector: 'app-progress-bar-paused',
templateUrl: './progress-bar-paused.component.html',
styleUrls: ['./progress-bar-paused.component.css']
})
export class ProgressBarPausedComponent implements OnInit {
() width: number;
('progressBar') progressBar: jqxProgressBarComponent;
constructor() { }
ngOnInit() {
}
ngOnChanges(changes) {
if (!changes.width.firstChange) {
this.progressBar.width(this.width);
}
}
colorRanges: jqwidgets.ProgressBarColorRanges[] =
[
{
stop: 40,
color: '#C8C8C8'
},
{
stop: 100,
color: '#f1f2f3'
}
]
}