jqwidgets-framework
Version:
jQWidgets is an advanced Angular, Vue, Blazor, React, Web Components, jquery, ASP .NET MVC, Custom Elements and HTML5 UI framework.
28 lines (24 loc) • 821 B
text/typescript
import { Component, ViewChild, ViewEncapsulation } from '@angular/core';
import { jqxTabsComponent } from 'jqwidgets-ng/jqxtabs';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
encapsulation: ViewEncapsulation.None
})
export class AppComponent {
@ViewChild('tabsReference', { static: false }) 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');
}
}
}