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

I'd like also the possibility to select only month and year. #84

Open
Erns opened this issue Jun 30, 2021 · 4 comments
Open

I'd like also the possibility to select only month and year. #84

Erns opened this issue Jun 30, 2021 · 4 comments
Labels
enhancement New feature or request Low priority

Comments

@Erns
Copy link

Erns commented Jun 30, 2021

I'd like also the possibility to select only month and year.

It's a common use case to select just the month and the year.

Originally posted by @francesco-clementi-92 in #80 (comment)

@RichardLindhout RichardLindhout added enhancement New feature or request Low priority labels Jul 1, 2021
@RichardLindhout
Copy link
Member

I don't have this use-case myself so I won't built it myself. There's als not written something about this picker in the Material Design specification, maybe we can lookup some example of a Google app who does this and screenshot te layout for inspiration if there is a good looking someone can pick it up to create a PR but I think we first need to decide on a layout.

@francesco-clementi-92
Copy link

Hi @RichardLindhout, I think we can refer to this guidelines:
https://material-ui-pickers.dev/demo/datepicker#different-views.

The site is a little bit outdated, but even the new version https://next.material-ui.com/components/date-picker/ is pretty much the same (can't find an example)

@RichardLindhout
Copy link
Member

Looking good! I'll accept a PR which adds this component

  • Uses Intl for the month names
  • Uses FlatList for year
  • Uses Flatlist for month grid

@nguyenhoa072
Copy link

How to use this feature?
thanks you so much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Low priority
Projects
None yet
Development

No branches or pull requests

4 participants