jqwidgets-framework
Version:
jQWidgets is an advanced jQuery, Angular, React, ASP .NET MVC, Custom Elements and HTML5 UI framework.
31 lines (26 loc) • 1.21 kB
text/typescript
import { Component, ViewChild, AfterViewInit } from '@angular/core';
import { jqxDateTimeInputComponent } from '../../../jqwidgets-ts/angular_jqxdatetimeinput';
export class AppComponent implements AfterViewInit {
myDateInput: jqxDateTimeInputComponent;
myTimeInput: jqxDateTimeInputComponent;
myDateTimeInput: jqxDateTimeInputComponent;
ngAfterViewInit(): void
{
this.myDateInput.createComponent(this.dateInputSettings);
this.myTimeInput.createComponent(this.timeInputSettings);
this.myDateTimeInput.createComponent(this.dateTimeInputSettings);
}
dateInputSettings: jqwidgets.DateTimeInputOptions = {
width: '300px', height: '25px'
}
timeInputSettings: jqwidgets.DateTimeInputOptions = {
formatString: "T", showTimeButton: true, showCalendarButton: false, width: '300px', height: '25px'
}
dateTimeInputSettings: jqwidgets.DateTimeInputOptions = {
formatString: "F", showTimeButton: true, width: '300px', height: '25px'
}
}