UNPKG

jqwidgets-scripts-custom

Version:

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

26 lines (21 loc) 857 B
import { Component, ViewChild, ViewEncapsulation } from '@angular/core'; import { jqxPanelComponent } from 'jqwidgets-scripts/jqwidgets-ts/angular_jqxpanel'; @Component({ selector: 'app-root', styleUrls: ['./app.component.css'], templateUrl: './app.component.html', encapsulation: ViewEncapsulation.None }) export class AppComponent { @ViewChild('log') log: jqxPanelComponent; select(event: any): void { let args = event.args; let selectedIndex = event.args.selectedIndex; this.log.prepend('<div style="margin-top: 5px;">Selected: ' + selectedIndex + '</div>'); }; unselect(event: any): void { let args = event.args; let unselectedIndex = event.args.unselectedIndex; this.log.prepend('<div style="margin-top: 5px;">Unselected: ' + unselectedIndex + '</div>'); }; }