UNPKG

jqwidgets-scripts-custom

Version:

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

20 lines (16 loc) 663 B
import { Component, ViewChild, ViewEncapsulation } from '@angular/core'; import { jqxResponsivePanelComponent } from 'jqwidgets-scripts/jqwidgets-ts/angular_jqxresponsivepanel'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'], encapsulation: ViewEncapsulation.None }) export class AppComponent { @ViewChild('myResponsivePanel') myResponsivePanel: jqxResponsivePanelComponent; responsivePanelOnCollapse(event: any): void { if (event.args.element) return; this.myResponsivePanel.elementRef.nativeElement.firstChild.style.display = 'block'; } }