jqwidgets-scripts-custom
Version:
jQWidgets is an advanced jQuery, Angular 7, Vue, React, ASP .NET MVC, Custom Elements and HTML5 UI framework.
25 lines (19 loc) • 666 B
text/typescript
import { Component, ViewChild } from '@angular/core';
import { jqxDateTimeInputComponent } from 'jqwidgets-scripts/jqwidgets-ts/angular_jqxdatetimeinput';
export class AppComponent {
myDateTimeInput: jqxDateTimeInputComponent;
count: number = 0;
leftBtn(): void {
this.myDateTimeInput.dropDownHorizontalAlignment('left');
}
// unnecessary overwrite in beggining
rightBtn(): void {
if (this.count !== 0)
this.myDateTimeInput.dropDownHorizontalAlignment('right');
this.count = 1;
}
}