jqwidgets-framework
Version:
jQWidgets is an advanced Angular, Vue, Blazor, React, Web Components, jquery, ASP .NET MVC, Custom Elements and HTML5 UI framework.
44 lines (40 loc) • 1.35 kB
text/typescript
import { Component, ViewChild, ElementRef } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html'
})
export class AppComponent {
@ViewChild('span10', { static: false }) span10: ElementRef;
@ViewChild('span11', { static: false }) span11: ElementRef;
@ViewChild('span12', { static: false }) span12: ElementRef;
checkBox10OnChange(event: any): void {
let checked = event.args.checked;
if (checked) {
this.span10.nativeElement.innerHTML = 'Checked';
}
else {
this.span10.nativeElement.innerHTML = 'Unchecked';
}
}
checkBox11OnChange(event: any): void {
let checked = event.args.checked;
if (checked) {
this.span11.nativeElement.innerHTML = 'Checked';
}
else {
this.span11.nativeElement.innerHTML = 'Unchecked';
}
}
checkBox12OnChange(event: any): void {
let checked = event.args.checked;
if (checked) {
this.span12.nativeElement.innerHTML = 'Checked';
}
else if (false == checked) {
this.span12.nativeElement.innerHTML = 'Unchecked';
}
else {
this.span12.nativeElement.innerHTML = 'Indeterminate';
}
}
}