UNPKG

jqwidgets-scripts-custom

Version:

jQWidgets is an advanced jQuery, Angular 7, Vue, React, ASP .NET MVC, Custom Elements and HTML5 UI framework.

22 lines (17 loc) 565 B
import { Component, ViewChild, AfterViewInit, ViewEncapsulation } from '@angular/core'; import { jqxWindowComponent } from 'jqwidgets-scripts/jqwidgets-ts/angular_jqxwindow'; @Component({ selector: 'app-root', styleUrls: ['./app.component.css'], templateUrl: './app.component.html', encapsulation: ViewEncapsulation.None }) export class AppComponent { @ViewChild('window') window: jqxWindowComponent; ngAfterViewInit(): void { this.window.focus(); } showWindowButtonClick(): void { this.window.open(); } }