From 77d8e335f2bc8f8d8dabcacebd9758c1f24e89e0 Mon Sep 17 00:00:00 2001 From: Diego Date: Wed, 30 Aug 2023 18:50:24 +0200 Subject: [PATCH] Added validRange prop --- docusaurus/docs/date-picker/input-date-picker.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/docusaurus/docs/date-picker/input-date-picker.md b/docusaurus/docs/date-picker/input-date-picker.md index 27d66d61..a68f215d 100644 --- a/docusaurus/docs/date-picker/input-date-picker.md +++ b/docusaurus/docs/date-picker/input-date-picker.md @@ -51,6 +51,10 @@ The label used to display in the component. `Type: Date | undefined` The value used to populate the component. +**inputMode (Required)** +`Type: String` +The type of input needed for the the picker component. + **onChange** `Type: Function` Callback event when the component date mask length matches the text input length. @@ -59,14 +63,18 @@ Callback event when the component date mask length matches the text input length `Type: Function` Callback event when the component text input changes. -**inputMode (Required)** -`Type: String` -The type of input needed for the the picker component. - **mode** `Type: 'flat' | 'outlined'` See [react-native-paper text-input](https://callstack.github.io/react-native-paper/text-input.html#mode). +**validRange** +`Type: { + startDate: Date | undefined, + endDate: Date | undefined, + disabledDates: Date[] | undefined +}` +Limits which dates the user can navigate to and where events can go. Dates outside of the valid range will be grayed-out. + **withDateFormatInLabel** `Type: boolean | undefined` Flag indicating if the date format should be inside the components label.