jqwidgets-framework
Version:
jQWidgets is an advanced Angular, Vue, Blazor, React, Web Components, jquery, ASP .NET MVC, Custom Elements and HTML5 UI framework.
30 lines (24 loc) • 828 B
text/typescript
import { Component, ViewChild, ElementRef, ViewEncapsulation } from '@angular/core';
({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
encapsulation: ViewEncapsulation.None
})
export class AppComponent {
('events', { static: false }) events: ElementRef;
onChecked(buttonNumber: number): void {
this.events.nativeElement.innerHTML = this.label[buttonNumber] + ': Unchecked';
}
onUnchecked(buttonNumber: number): void {
this.events.nativeElement.innerHTML = this.label[buttonNumber] + ': Checked';
}
label: any =
{
'1': 'New Mail',
'2': 'Sent Mail',
'3': 'Calendar Alerts',
'4': 'Lock Sounds',
'5': 'Keyboard clicks'
}
}