Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DateTimePicker: initialPickerDate #1581

Merged
merged 1 commit into from
Jul 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/documentation/docs/controls/DateTimePicker.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ The `DateTimePicker` control can be configured with the following properties:
| timeDisplayControlType | TimeDisplayControlType | no | Specifies what type of control to use when rendering time part. |
| showLabels | boolean | no | Specifies if labels in front of date and time parts should be rendered. |
| placeholder | string | no | Placeholder text for the DatePicker. |
| initialPickerDate | Date | no | The initially highlighted date in the calendar picker
| maxDate | Date | no | The maximum allowable date. |
| minDate | Date | no | The minimum allowable date. |
| minutesIncrementStep | MinutesIncrement | no | Specifies minutes' increment step for `TimeDisplayControlType.Dropdow` |
Expand Down
2 changes: 2 additions & 0 deletions src/controls/dateTimePicker/DateTimePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ export class DateTimePicker extends React.Component<IDateTimePickerProps, IDateT
timeDisplayControlType,
placeholder,
showLabels,
initialPickerDate,
minDate,
maxDate,
minutesIncrementStep,
Expand Down Expand Up @@ -337,6 +338,7 @@ export class DateTimePicker extends React.Component<IDateTimePickerProps, IDateT
showMonthPickerAsOverlay={showMonthPickerAsOverlay}
showWeekNumbers={showWeekNumbers}
placeholder={placeholder}
initialPickerDate={initialPickerDate}
minDate={minDate}
maxDate={maxDate}
textField={{
Expand Down
6 changes: 5 additions & 1 deletion src/controls/dateTimePicker/IDateTimePickerProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,13 @@ export interface IDateTimePickerProps {
placeholder?: string;

/**
* The minimum allowable date for the DatePicker
* The initial selected date
*/
initialPickerDate?: Date;

/**
* The minimum allowable date for the DatePicker
*/
minDate?: Date;

/**
Expand Down