You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,22 +4,23 @@ Datepicker component for applications based on Facebook React library.
4
4
5
5
##Usage
6
6
Standalone datepicker element. It can perform action if date is selected. Parameters are optional.
7
+
For best functionality, *DatePicker* needs to be wrapped in component which sets new date on *onChangeDate* event. An example of such wrapper component could be *DatepickerInput*.
This library contains own datepicker integration with input element.
17
18
All parameters are optional.
18
-
Default: date = new Date()
19
+
Parameter *beforeUpdate* has to be function which returns string. This string will be set as value of input field before date change.
19
20
20
21
```
21
22
var returnDate = function(date) {return date}; // this callback will be called before input field update. You can use it for example for date formatting as is shown in example/index.html
0 commit comments