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
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,7 +92,7 @@ Displays an input field complete with custom inputs, native input, a calendar, a
92
92
| clearAriaLabel |`aria-label` for the clear button. | n/a |`"Clear value"`|
93
93
| clearIcon | Content of the clear button. Setting the value explicitly to `null` will hide the icon. | (default icon) | <ul><li>String: `"Clear"`</li><li>React element: `<ClearIcon />`</li><li>React function: `ClearIcon`</li></ul> |
94
94
| clockClassName | Class name(s) that will be added along with `"react-clock"` to the main React-Calendar `<div>` element. | n/a | <ul><li>String: `"class1 class2"`</li><li>Array of strings: `["class1", "class2 class3"]`</li></ul> |
95
-
| closeWidgets | Whether to close the widgets on value selection. Note: It's recommended to use shouldCloseWidgets function instead.|`true`|`false`|
95
+
| closeWidgets | Whether to close the widgets on value selection. **Note**: It's recommended to use shouldCloseWidgets function instead. |`true`|`false`|
96
96
| data-testid |`data-testid` attribute for the main React-DateTime-Picker `<div>` element. | n/a |`"date-picker"`|
97
97
| dayAriaLabel |`aria-label` for the day input. | n/a |`"Day"`|
98
98
| dayPlaceholder |`placeholder` for the day input. |`"--"`|`"dd"`|
@@ -122,7 +122,7 @@ Displays an input field complete with custom inputs, native input, a calendar, a
122
122
| onClockOpen | Function called when the clock opens. | n/a |`() => alert('Clock opened')`|
123
123
| onFocus | Function called when the focuses an input. | n/a |`(event) => alert('Focused input: ', event.target.name)`|
124
124
| onInvalidChange | Function called when the user picks an invalid datetime. | n/a |`() => alert('Invalid datetime')`|
125
-
| openWidgetsOnFocus | Whether to open the widgets on input focus. Note: It's recommended to use shouldOpenWidgets function instead.|`true`|`false`|
125
+
| openWidgetsOnFocus | Whether to open the widgets on input focus. **Note**: It's recommended to use shouldOpenWidgets function instead. |`true`|`false`|
126
126
| portalContainer | Element to render the widgets in using portal. | n/a |`document.getElementById('my-div')`|
127
127
| 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"`|
128
128
| required | Whether datetime input should be required. |`false`|`true`|
0 commit comments