1 |
|
2 | import { CaptionElementProps } from "react-day-picker";
|
3 | import { AbstractPureComponent2 } from "@blueprintjs/core";
|
4 | export interface IDatePickerCaptionProps extends CaptionElementProps {
|
5 | maxDate: Date;
|
6 | minDate: Date;
|
7 | onMonthChange?: (month: number) => void;
|
8 | onYearChange?: (year: number) => void;
|
9 |
|
10 | onDateChange?: (date: Date) => void;
|
11 | reverseMonthAndYearMenus?: boolean;
|
12 | }
|
13 | export interface IDatePickerCaptionState {
|
14 | monthRightOffset: number;
|
15 | }
|
16 | export declare class DatePickerCaption extends AbstractPureComponent2<IDatePickerCaptionProps, IDatePickerCaptionState> {
|
17 | state: IDatePickerCaptionState;
|
18 | private containerElement;
|
19 | private displayedMonthText;
|
20 | private handleMonthSelectChange;
|
21 | private handleYearSelectChange;
|
22 | render(): JSX.Element;
|
23 | componentDidMount(): void;
|
24 | componentDidUpdate(): void;
|
25 | private positionArrows;
|
26 | private dateChangeHandler;
|
27 | }
|