UNPKG

@adaptabletools/adaptable

Version:

Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements

21 lines (20 loc) 781 B
import * as React from 'react'; import { BoxProps } from 'rebass'; import { DatepickerButton } from '../../AdaptableOptions/DateInputOptions'; import { Locale } from 'date-fns'; export type DatepickerProps = Omit<BoxProps, 'value' | 'onChange' | 'defaultValue'> & { value: Date | undefined; defaultValue?: Date | undefined; autoFocus?: boolean; onChange: (value: Date | undefined) => void; onHide?: VoidFunction; showClearButton?: boolean; datepickerButtons?: DatepickerButton[]; dateProps: { format: string; locale?: Locale; }; showWeekNumber?: boolean; showOutsideDays?: boolean; }; export declare const Datepicker: React.ForwardRefExoticComponent<Omit<DatepickerProps, "ref"> & React.RefAttributes<HTMLInputElement>>;