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

[pickers][DateRangePicker] support selecting months and years #13124

Closed
aelkadah opened this issue May 13, 2024 · 10 comments
Closed

[pickers][DateRangePicker] support selecting months and years #13124

aelkadah opened this issue May 13, 2024 · 10 comments
Labels
component: pickers This is the name of the generic UI component, not the React module! customization: extend Logic customizability duplicate This issue or pull request already exists enhancement This is not a bug, nor a new feature support: question Community support but can be turned into an improvement

Comments

@aelkadah
Copy link

aelkadah commented May 13, 2024

Summary

I want to make Year title and month Title selectable in the header of DateRangePicker component in react-mui

Examples

Screenshot 2024-05-13 170635

Motivation

No response

Search keywords: DateRangePicker

Search keywords:

@aelkadah aelkadah added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label May 13, 2024
@mnajdova mnajdova transferred this issue from mui/material-ui May 14, 2024
@michelengelen michelengelen changed the title DateRangePicker support selecting months and years [pickers][DateRangePicker] support selecting months and years May 14, 2024
@michelengelen michelengelen added support: question Community support but can be turned into an improvement status: waiting for author Issue with insufficient information component: pickers This is the name of the generic UI component, not the React module! customization: extend Logic customizability enhancement This is not a bug, nor a new feature and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels May 14, 2024
@michelengelen
Copy link
Member

Hey @aelkadah
what is it you want to achieve?
Do you want to include a Select component as a replacement for the Month / Year title in the DatePicker component?
Please add a more detailed description of your use case!
thanks!

@flaviendelangle
Copy link
Member

Looks like a duplicate of #4546

@aelkadah
Copy link
Author

Hey @aelkadah what is it you want to achieve? Do you want to include a Select component as a replacement for the Month / Year title in the DatePicker component? Please add a more detailed description of your use case! thanks!

Hi, Yes I want to make year and month clickable so when clicking on them I choose from list of months or years like in DatePicker component after using views={['year', 'month', 'day']}

@github-actions github-actions bot added status: waiting for maintainer These issues haven't been looked at yet by a maintainer and removed status: waiting for author Issue with insufficient information labels May 14, 2024
@aelkadah
Copy link
Author

Looks like a duplicate of #4546

Hi @flaviendelangle but I don't see a direct react-mui solution in this thread can you help me more simply

@flaviendelangle
Copy link
Member

Hi @flaviendelangle but I don't see a direct react-mui solution in this thread can you help me more simply

Sorry, my answer wasn't clear

We don't support this feature yet, the issue I linked is the one referring to the feature you are asking for.
You can implement something using a custom CalendarHeader, but this will be a very heavy customization.

@aelkadah
Copy link
Author

Hi @flaviendelangle but I don't see a direct react-mui solution in this thread can you help me more simply

Sorry, my answer wasn't clear

We don't support this feature yet, the issue I linked is the one referring to the feature you are asking for. You can implement something using a custom CalendarHeader, but this will be a very heavy customization.

Thanks @flaviendelangle, please let me know if you have this CalendarHeader solution done before to see it ?

@flaviendelangle
Copy link
Member

I don't think anybody tried an implementation with CalendarHeader yet
You have example on the doc on how to create a custom header but we don't have an example with the use-case you are looking for.

@aelkadah
Copy link
Author

aelkadah commented May 15, 2024

Ok thanks for your time and effort

@michelengelen
Copy link
Member

I guess this can be closed for now.
Thanks for raising an issue here @aelkadah ... and sry that we cannot provide you with hand tailored solution for your use-case.

@michelengelen michelengelen removed the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label May 15, 2024
Copy link

⚠️ This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.

@aelkadah: How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey.

@flaviendelangle flaviendelangle added duplicate This issue or pull request already exists labels May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: pickers This is the name of the generic UI component, not the React module! customization: extend Logic customizability duplicate This issue or pull request already exists enhancement This is not a bug, nor a new feature support: question Community support but can be turned into an improvement
Projects
None yet
Development

No branches or pull requests

3 participants