@@ -27,6 +27,7 @@ Here are some examples of the control:
27
27
``` TypeScript
28
28
import { DateTimePicker , DateConvention , TimeConvention } from ' @pnp/spfx-controls-react/lib/DateTimePicker' ;
29
29
```
30
+
30
31
- Use the ` DateTimePicker ` control in your code as follows, either as an uncontrolled or a controlled component:
31
32
32
33
``` TypeScript
@@ -47,7 +48,6 @@ import { DateTimePicker, DateConvention, TimeConvention } from '@pnp/spfx-contro
47
48
48
49
The ` DateTimePicker ` control can be configured with the following properties:
49
50
50
-
51
51
| Property | Type | Required | Description |
52
52
| ---- | ---- | ---- | ---- |
53
53
| label | string | no | Property field label displayed on top. |
@@ -72,12 +72,13 @@ The `DateTimePicker` control can be configured with the following properties:
72
72
| timeDisplayControlType | TimeDisplayControlType | no | Specifies what type of control to use when rendering time part. |
73
73
| showLabels | boolean | no | Specifies if labels in front of date and time parts should be rendered. |
74
74
| placeholder | string | no | Placeholder text for the DatePicker. |
75
- | initialPickerDate | Date | no | The initially highlighted date in the calendar picker
75
+ | initialPickerDate | Date | no | The initially highlighted date in the calendar picker |
76
76
| maxDate | Date | no | The maximum allowable date. |
77
77
| minDate | Date | no | The minimum allowable date. |
78
78
| minutesIncrementStep | MinutesIncrement | no | Specifies minutes' increment step for ` TimeDisplayControlType.Dropdow ` |
79
- | showClearDate | boolean | no | Controls whether the clearDate iconbutton must be available when date is selected, default to false
80
- | showClearDateIcon | string | no | Controls the icon used for clearDate iconbutton. Defaults to 'RemoveEvent'
79
+ | showClearDate | boolean | no | Controls whether the clearDate iconbutton must be available when date is selected, default to false |
80
+ | showClearDateIcon | string | no | Controls the icon used for clearDate iconbutton. Defaults to 'RemoveEvent' |
81
+ | restrictedDates | Date[ ] | no | If set the Calendar will not allow selection of dates in this array. |
81
82
82
83
Enum ` TimeDisplayControlType `
83
84
@@ -112,6 +113,7 @@ Interface `IDateTimePickerStrings` extends [IDatePickerStrings](https://develope
112
113
| textErrorMessage | string | no | Error message when text is entered in the date picker. |
113
114
114
115
Type ` MinutesIncrement `
116
+
115
117
``` typescript
116
118
type MinutesIncrement = 1 | 5 | 10 | 15 | 30 ;
117
119
```
0 commit comments