jqwidgets-framework
Version:
jQWidgets is an advanced Angular, Vue, Blazor, React, Web Components, jquery, ASP .NET MVC, Custom Elements and HTML5 UI framework.
29 lines (22 loc) • 725 B
text/typescript
import { Component, ViewChild, AfterViewInit, ElementRef } from '@angular/core';
import { jqxMenuComponent } from 'jqwidgets-ng/jqxmenu';
({
selector: 'app-root',
templateUrl: './app.component.html'
})
export class AppComponent implements AfterViewInit {
('jqxMenu', { static: false }) jqxMenu: jqxMenuComponent;
('log', { static: false }) log: ElementRef;
ngAfterViewInit() {
this.jqxMenu.focus();
}
getWidth() : any {
if (document.body.offsetWidth < 600) {
return '90%';
}
return 600;
}
itemclick(event: any): void {
this.log.nativeElement.innerHTML = "Clicked: " + event.args.innerText;
};
}