UNPKG

jqwidgets-framework

Version:

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

15 lines (12 loc) 691 B
import { Component, ViewChild } from '@angular/core';

import { jqxDateTimeInputComponent } from '../../../jqwidgets-ts/angular_jqxdatetimeinput';

@Component({
 selector: 'app-root',
 templateUrl: './app.component.html'
})

export class AppComponent { @ViewChild('myDateTimeInput') 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; }
}