Skip to content

Commit 6906ed0

Browse files
committed
Update docs
1 parent 6f0e72d commit 6906ed0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ Displays an input field complete with custom inputs, native input, a calendar, a
119119
| onChange | Function called when the user picks a valid datetime. If any of the fields were excluded using custom `format`, `new Date(y, 0, 1, 0, 0, 0)`, where `y` is the current year, is going to serve as a "base". | n/a | `(value) => alert('New date is: ', value)` |
120120
| onClockClose | Function called when the clock closes. | n/a | `() => alert('Clock closed')` |
121121
| onClockOpen | Function called when the clock opens. | n/a | `() => alert('Clock opened')` |
122+
| onFocus | Function called when the focuses an input. | n/a | `(event) => alert('Focused input: ', event.target.name)` |
122123
| openWidgetsOnFocus | Whether to open the widgets on input focus. | `true` | `false` |
123124
| portalContainer | Element to render the widgets in using portal. | n/a | `document.getElementById('my-div')` |
124125
| returnValue | Which dates shall be passed by the calendar to the onChange function and onClick{Period} functions. Can be `"start"`, `"end"` or `"range"`. The latter will cause an array with start and end values to be passed. | ` "start"` | `"range"` |

0 commit comments

Comments
 (0)