UNPKG

968 BTypeScriptView Raw
1import React from 'react';
2export interface DatePickerPropsType {
3 value?: Date;
4 mode?: 'datetime' | 'date' | 'year' | 'month' | 'time';
5 minDate?: Date;
6 maxDate?: Date;
7 onChange?: (value: Date) => void;
8 onValueChange?: (vals: any, index: number) => void;
9 visible?: boolean;
10 onDismiss?: () => void;
11 locale?: {
12 okText: string;
13 dismissText: string;
14 extra: string;
15 DatePickerLocale: {
16 year: string;
17 month: string;
18 day: string;
19 hour: string;
20 minute: string;
21 am?: string;
22 pm?: string;
23 };
24 };
25 minuteStep?: number;
26 disabled?: boolean;
27 format?: string | ((value: Date) => string);
28 extra?: string;
29 children?: React.ReactNode;
30 /** React.ReactElement only for web */
31 dismissText?: JSX.Element;
32 /** React.ReactElement only for web */
33 okText?: JSX.Element;
34 title?: JSX.Element;
35}
36
\No newline at end of file