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