Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

MaterialDatepickerComponent year selection #350

Open
alescdb opened this issue Nov 2, 2018 · 1 comment · May be fixed by #365
Open

MaterialDatepickerComponent year selection #350

alescdb opened this issue Nov 2, 2018 · 1 comment · May be fixed by #365

Comments

@alescdb
Copy link

alescdb commented Nov 2, 2018

Hi everyone,

Unless I'm mistaken, it is not possible to change the year in MaterialDatepickerComponent.
So, if you want to select a date far in the past (or future) the only choice is to type it (or mouse scrolling for hours :-)).

It looks like it is possible in MaterialDateRangePickerComponent (month by month)

e.g : https://material.angular.io/components/datepicker

image

@cpelling
Copy link
Contributor

cpelling commented Nov 2, 2018

Yes, that's correct. This is possible in MaterialDateRangePickerComponent using the "[Month] [Year]" dropdown, which toggles the date grid to show a month grid, but indeed this is not present in MaterialDatepickerComponent.

We do have a spec for adding an option to include the "[Month] [Year]" dropdown in MaterialDatepickerComponent. It would look pretty similar to the treatment in MaterialDateRangePickerComponent. But nobody's asked for it yet, so it hasn't been implemented. Contributions welcome, as always. :)

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

Successfully merging a pull request may close this issue.

3 participants