ng2-bootstrap
Version:
angular2 bootstrap components
45 lines (44 loc) • 1.29 kB
TypeScript
import { EventEmitter } from '@angular/core';
import { DatePickerInnerComponent } from './datepicker-inner.component';
import { ControlValueAccessor, NgModel } from '@angular/forms';
export declare class DatePickerComponent implements ControlValueAccessor {
datepickerMode: string;
initDate: Date;
minDate: Date;
maxDate: Date;
minMode: string;
maxMode: string;
showWeeks: boolean;
formatDay: string;
formatMonth: string;
formatYear: string;
formatDayHeader: string;
formatDayTitle: string;
formatMonthTitle: string;
startingDay: number;
yearRange: number;
onlyCurrentMonth: boolean;
shortcutPropagation: boolean;
customClass: Array<{
date: Date;
mode: string;
clazz: string;
}>;
monthColLimit: number;
yearColLimit: number;
dateDisabled: any;
selectionDone: EventEmitter<Date>;
_datePicker: DatePickerInnerComponent;
onChange: any;
onTouched: any;
cd: NgModel;
private _now;
private _activeDate;
activeDate: Date;
constructor(cd: NgModel);
onUpdate(event: any): void;
onSelectionDone(event: Date): void;
writeValue(value: any): void;
registerOnChange(fn: (_: any) => {}): void;
registerOnTouched(fn: () => {}): void;
}