Skip to content

Commit 1bcd998

Browse files
committed
readme. clarify returned value.
1 parent bb2e4c5 commit 1bcd998

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ DateTimeField
3434
| **dateTime** | string | moment().format('x') | Represents the inital dateTime, this string is then parsed by moment.js |
3535
| **format** | string | "x" | Defines the format moment.js should use to parse and output the date to onChange |
3636
| **inputFormat** | string | "MM/DD/YY h:mm A" | Defines the way the date is represented in the HTML input |
37-
| **onChange** | function | x => console.log(x) | Callback trigger when the date changes |
37+
| **onChange** | function | x => console.log(x) | Callback trigger when the date changes returning new datetime |
3838
| **showToday** | boolean | true | Highlights today's date |
3939
| **daysOfWeekDisabled** | array of integer | [] | Disables clicking on some days. Goes from 0 (Sunday) to 6 (Saturday). |
4040
| **viewMode** | string or number | 'days' | The default view to display when the picker is shown. ('years', 'months', 'days') |

0 commit comments

Comments
 (0)