chore: update date field schema (#4098)
This commit is contained in:
committed by
GitHub
parent
803a37eaa9
commit
56ddd2c388
@@ -55,6 +55,7 @@ In addition to the default [field admin config](/docs/fields/overview#admin-conf
|
|||||||
| **`date.maxDate`** \* | Max date value to allow. |
|
| **`date.maxDate`** \* | Max date value to allow. |
|
||||||
| **`date.minTime`** \* | Min time value to allow. |
|
| **`date.minTime`** \* | Min time value to allow. |
|
||||||
| **`date.maxTime`** \* | Max date value to allow. |
|
| **`date.maxTime`** \* | Max date value to allow. |
|
||||||
|
| **`date.overrides`** \* | Pass any valid props directly to the [react-datepicker](https://github.com/Hacker0x01/react-datepicker/blob/master/docs/datepicker.md) |
|
||||||
| **`date.timeIntervals`** \* | Time intervals to display. Defaults to 30 minutes. |
|
| **`date.timeIntervals`** \* | Time intervals to display. Defaults to 30 minutes. |
|
||||||
| **`date.timeFormat`** \* | Determines time format. Defaults to `'h:mm aa'`. |
|
| **`date.timeFormat`** \* | Determines time format. Defaults to `'h:mm aa'`. |
|
||||||
|
|
||||||
|
|||||||
@@ -451,6 +451,7 @@ export const date = baseField.keys({
|
|||||||
minDate: joi.date(),
|
minDate: joi.date(),
|
||||||
minTime: joi.date(),
|
minTime: joi.date(),
|
||||||
monthsToShow: joi.number(),
|
monthsToShow: joi.number(),
|
||||||
|
overrides: joi.object().unknown(),
|
||||||
pickerAppearance: joi.string(),
|
pickerAppearance: joi.string(),
|
||||||
timeFormat: joi.string(),
|
timeFormat: joi.string(),
|
||||||
timeIntervals: joi.number(),
|
timeIntervals: joi.number(),
|
||||||
|
|||||||
Reference in New Issue
Block a user