UNPKG

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
import { Component, ViewChild, ElementRef } from '@angular/core'; import { jqxRatingComponent } from 'jqwidgets-scripts/jqwidgets-ts/angular_jqxrating'; @Component({ selector: 'app-root', templateUrl: './app.component.html' }) export class AppComponent { @ViewChild('rate') rate: ElementRef; change(event: any): void { let rate = this.rate.nativeElement; rate.innerHTML = '<span> ' + event.value + '</span>'; } }