UNPKG

jqwidgets-framework

Version:

jQWidgets is an advanced Angular, Vue, Blazor, React, Web Components, jquery, ASP .NET MVC, Custom Elements and HTML5 UI framework.

18 lines (13 loc) 466 B
import { Component, ViewChild, ElementRef } from '@angular/core'; import { jqxRatingComponent } from 'jqwidgets-ng/jqxrating'; @Component({ selector: 'app-root', templateUrl: './app.component.html' }) export class AppComponent { @ViewChild('rate', { static: false }) rate: ElementRef; change(event: any): void { let rate = this.rate.nativeElement; rate.innerHTML = '<span> ' + event.value + '</span>'; } }