UNPKG

619 BTypeScriptView Raw
1import { EventEmitter } from '@angular/core';
2import { DateAdapter } from '../../date-adapters/date-adapter';
3/**
4 * Change the view date to the current day. For example:
5 *
6 * ```typescript
7 * <button
8 * mwlCalendarToday
9 * [(viewDate)]="viewDate">
10 * Today
11 * </button>
12 * ```
13 */
14export declare class CalendarTodayDirective {
15 private dateAdapter;
16 /**
17 * The current view date
18 */
19 viewDate: Date;
20 /**
21 * Called when the view date is changed
22 */
23 viewDateChange: EventEmitter<Date>;
24 constructor(dateAdapter: DateAdapter);
25 /**
26 * @hidden
27 */
28 onClick(): void;
29}