UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

38 lines (37 loc) 1.45 kB
/// <reference types="react" /> import { ICalendar, ICalendarProps } from './Calendar.types'; import { BaseComponent } from '../../Utilities'; export interface ICalendarState { /** The currently focused date in the day picker, but not necessarily selected */ navigatedDayDate?: Date; /** The currently focused date in the month picker, but not necessarily selected */ navigatedMonthDate?: Date; /** The currently selected date in the calendar */ selectedDate?: Date; /** State used to show/hide month picker */ isMonthPickerVisible?: boolean; /** State used to show/hide day picker */ isDayPickerVisible?: boolean; } export declare class Calendar extends BaseComponent<ICalendarProps, ICalendarState> implements ICalendar { static defaultProps: ICalendarProps; private _dayPicker; private _monthPicker; private _focusOnUpdate; constructor(props: ICalendarProps); componentWillReceiveProps(nextProps: ICalendarProps): void; componentDidUpdate(): void; render(): JSX.Element; focus(): void; private _navigateDayPickerDay; private _navigateMonthPickerDay; private _onNavigateDayDate; private _onNavigateMonthDate; private _onSelectDate; private _onHeaderSelect; private _onGotoToday; private _onGotoTodayClick; private _onGotoTodayKeyDown; private _onDatePickerPopupKeyDown; private _handleEscKey; }