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