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 (19 loc) 596 B
import { Component, ViewChild, AfterViewInit } from '@angular/core'; import { jqxDockingComponent } from 'jqwidgets-ng/jqxdocking'; @Component({ selector: 'app-root', templateUrl: './app.component.html' }) export class AppComponent implements AfterViewInit { @ViewChild('myDocking', { static: false }) myDocking; jqxDockingComponent; getWidth() : any { if (document.body.offsetWidth < 850) { return '90%'; } return 850; } ngAfterViewInit(): void { this.myDocking.showAllCollapseButtons(); this.myDocking.focus(); } }