ng-daterangepicker2
Version:
Angular PayPal Datepicker
25 lines (22 loc) • 681 B
text/typescript
import { Component, OnInit } from '@angular/core';
import { NgDateRangePickerOptions } from '../ng-daterangepicker';
({
selector: 'app-root',
templateUrl: 'app.component.html'
})
export class AppComponent implements OnInit {
value: string;
options: NgDateRangePickerOptions;
ngOnInit() {
this.options = {
theme: 'default',
range: 'tm',
dayNames: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
presetNames: ['This Month', 'Last Month', 'This Week', 'Last Week', 'This Year', 'Last Year', 'Today', 'Start', 'End'],
dateFormat: 'yMd',
outputFormat: 'DD/MM/YYYY',
startOfWeek: 0,
locale: 'en'
};
}
}