From 4c4b7eb90069d7eb7acb32bab636c29a3ceddeeb Mon Sep 17 00:00:00 2001 From: Olmo del Corral Date: Wed, 25 Jan 2017 21:14:54 +0100 Subject: [PATCH] add defaultCurrentDate --- react-widgets/lib/DateTimePicker.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/react-widgets/lib/DateTimePicker.d.ts b/react-widgets/lib/DateTimePicker.d.ts index 37e1474416..3c4aadde29 100644 --- a/react-widgets/lib/DateTimePicker.d.ts +++ b/react-widgets/lib/DateTimePicker.d.ts @@ -31,6 +31,10 @@ interface DateTimePickerProps extends React.Props { * @default Date() */ currentDate?: Date; + /* + * Default value for current date. Usefull for suggesting a date when the caldenar opens without keep forcing it once 'value' is set. + */ + defaultCurrentDate?: Date /** * Change event Handler that is called when the currentDate is changed. The handler is * called with the currentDate object.