jqwidgets-scripts-custom
Version:
jQWidgets is an advanced jQuery, Angular 7, Vue, React, ASP .NET MVC, Custom Elements and HTML5 UI framework.
18 lines (13 loc) • 456 B
text/typescript
import { Component, ViewChild, ElementRef } from '@angular/core';
import { jqxRatingComponent } from 'jqwidgets-scripts/jqwidgets-ts/angular_jqxrating';
({
selector: 'app-root',
templateUrl: './app.component.html'
})
export class AppComponent {
('rate') rate: ElementRef;
change(event: any): void {
let rate = this.rate.nativeElement;
rate.innerHTML = '<span> ' + event.value + '</span>';
}
}