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

[Feature]: Add functionality to have selection date range based on number of days in DatePicker fluent v9 #28961

Closed
1 task done
nikitasingla-MSFT opened this issue Aug 23, 2023 · 1 comment

Comments

@nikitasingla-MSFT
Copy link

Library

React Components / v9 (@fluentui/react-components)

Describe the feature that you would like added

in fluent ui date picker it is not possible to select a date range of more than a week, say three weeks.
In @fluentui/react library , i.e. the fabric version, https://fabricweb.z5.web.core.windows.net/oufr/8.110.11/#/examples/datepicker, they allowed us to select the date range based on number of days.

code snippet from '@fluentui/react':
<Calendar firstDayOfWeek={DayOfWeek.Monday} showGoToToday showMonthPickerAsOverlay highlightSelectedMonth onSelectDate={props.onSelectDate} calendarDayProps={{ daysToSelectInDayView: 21 }} />

We would appreciate some prop to fulfil this requirement for datepicker in fluent v9 as we want to select range of 21 days in it.

Have you discussed this feature with our team

No response

Additional context

No response

Validations

  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Priority

High

@nikitasingla-MSFT nikitasingla-MSFT changed the title [Feature]: [Feature]: Add functionality to have date range based on number of days in DatePicker fluent v9 Aug 23, 2023
@nikitasingla-MSFT nikitasingla-MSFT changed the title [Feature]: Add functionality to have date range based on number of days in DatePicker fluent v9 [Feature]: Add functionality to have selection date range based on number of days in DatePicker fluent v9 Aug 23, 2023
@sopranopillow
Copy link
Contributor

Hello @nikitasingla-MSFT, this is already possible. To achieve this, you need to use the calendar slot to access the Calendar props like this:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants