add defaultCurrentDate

This commit is contained in:
Olmo del Corral
2017-01-25 21:14:54 +01:00
parent 6a8f8363f5
commit 4c4b7eb900
+4
View File
@@ -31,6 +31,10 @@ interface DateTimePickerProps extends React.Props<DateTimePickerClass> {
* @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.