UNPKG

jqwidgets-framework

Version:

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

24 lines (18 loc) 528 B
import { Component, ViewChild, AfterViewInit } from '@angular/core'; import { jqxTabsComponent } from 'jqwidgets-ng/jqxtabs'; @Component({ selector: 'app-root', templateUrl: './app.component.html' }) export class AppComponent implements AfterViewInit { @ViewChild('jqxTabs', { static: false }) jqxTabs: jqxTabsComponent; ngAfterViewInit() { this.jqxTabs.focus(); } getWidth() : any { if (document.body.offsetWidth < 600) { return '90%'; } return 600; } }