jqwidgets-framework
Version:
jQWidgets is an advanced jQuery, Angular, React, ASP .NET MVC, Custom Elements and HTML5 UI framework.
6 lines • 778 B
text/typescript
import { Component, ViewChild } from '@angular/core';
import { jqxDateTimeInputComponent } from '../../../jqwidgets-ts/angular_jqxdatetimeinput';
({
selector: 'app-root',
templateUrl: './app.component.html'
})
export class AppComponent {
('myDateTimeInput') myDateTimeInput: jqxDateTimeInputComponent;
count: number = 0;
noneAnimationBtn() {
this.myDateTimeInput.animationType('none');
}
slideAnimationBtn() {
this.myDateTimeInput.animationType('slide');
}
// avoids unnecessary overwrite in the beggining
fadeAnimationBtn() {
if(this.count !== 0)
this.myDateTimeInput.animationType('fade');
this.count = 1;
}
}