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
+1
Original file line number
Diff line number
Diff line change
@@ -67,6 +67,7 @@ Below we have all the props that we can use with the `<DateTime>` component. The
67
67
|**onBeforeNavigate**|`function`| ( nextView, currentView, viewDate ) => nextView | Allows to intercept a change of the calendar view. The accepted function receives the view that it's supposed to navigate to, the view that is showing currently and the date currently shown in the view. Return a viewMode ( default ones are `years`, `months`, `days` or `time`) to navigate to it. If the function returns a "falsy" value, the navigation is stopped and we will remain in the current view. |
68
68
|**onNavigateBack**|`function`| empty function | Callback trigger when the user navigates to the previous month, year or decade. The callback receives the amount and type ('month', 'year') as parameters. |
69
69
|**onNavigateForward**|`function`| empty function | Callback trigger when the user navigates to the next month, year or decade. The callback receives the amount and type ('month', 'year') as parameters. |
70
+
|**onViewDateChange**|`function`| empty function | Callback trigger for when the user changes the currently viewed date. The callback receives the current view date `moment` object as only parameter. |
70
71
|**className**|`string` or `string array`|`''`| Extra class name for the outermost markup element. |
71
72
|**inputProps**|`object`|`undefined`| Defines additional attributes for the input element of the component. For example: `onClick`, `placeholder`, `disabled`, `required`, `name` and `className` (`className`*sets* the class attribute for the input element). See [Customize the Input Appearance](#customize-the-input-appearance). |
72
73
|**isValidDate**|`function`|`() => true`| Define the dates that can be selected. The function receives `(currentDate, selectedDate)` and shall return a `true` or `false` whether the `currentDate` is valid or not. See [selectable dates](#selectable-dates).|
0 commit comments