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) • 870 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 {
('tabs1', { static: false }) tabs1: jqxTabsComponent;
('tabs2', { static: false }) tabs2: jqxTabsComponent;
('tabs3', { static: false }) tabs3: jqxTabsComponent;
getWidth() : any {
if (document.body.offsetWidth < 850) {
return '90%';
}
return 850;
}
ngAfterViewInit() {
this.tabs1.elementRef.nativeElement.firstChild.style.border = 'none';
this.tabs2.elementRef.nativeElement.firstChild.style.border = 'none';
this.tabs3.elementRef.nativeElement.firstChild.style.border = 'none';
}
}