jqwidgets-scripts-custom
Version:
jQWidgets is an advanced jQuery, Angular 7, Vue, React, ASP .NET MVC, Custom Elements and HTML5 UI framework.
37 lines (30 loc) • 1.2 kB
text/typescript
import { Component, ViewChild, ViewEncapsulation } from '@angular/core';
import { jqxKnobComponent } from 'jqwidgets-scripts/jqwidgets-ts/angular_jqxknob';
import { jqxNumberInputComponent } from 'jqwidgets-scripts/jqwidgets-ts/angular_jqxnumberinput';
export class AppComponent {
progressBar: any =
{
style: { fill: { color: '#00a4e1', gradientType: 'radial', gradientStops: [[0, 0.5], [100, 1]] } },
size: '50%',
offset: '50%',
background: { fill: { color: '#FFFFFF', gradientType: 'linear', gradientStops: [[0, 0.5], [100, 1]] } }
};
pointer: any =
{
type: 'line', style: { fill: '#00a4e1' }, size: '50%', offset: '50%', thickness: 0
};
myKnobOnChange(event: any): void {
this.myNumberInput.val(event.args.value);
};
myNumberInputOnChange(event: any): void {
this.myKnob.val(event.args.value);
};
}