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