UNPKG

jqwidgets-scripts-custom

Version:

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

28 lines (24 loc) 801 B
import { Component, ViewChild, ViewEncapsulation } from '@angular/core'; import { jqxTabsComponent } from 'jqwidgets-scripts/jqwidgets-ts/angular_jqxtabs'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'], encapsulation: ViewEncapsulation.None }) export class AppComponent { @ViewChild('tabsReference') myTabs: jqxTabsComponent; onChangeAnimation(event: any): void { let checked = event.args.checked; this.myTabs.selectionTracker(checked); } onChangeContentAnimation(event: any): void { let checked = event.args.checked; if (checked) { this.myTabs.animationType('fade'); } else { this.myTabs.animationType('none'); } } }