Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Hide years superior to max date in datepicker #10646
Bug, feature request, or proposal:
Proposal, change the view years if a maxdate is set.
What is the expected behavior?
If i set the maxdate as today (in 2018) i don't expect to see 2019, 2020, 2021... in the years view.
What is the current behavior?
What is the use-case or motivation for changing an existing behavior?
I set a max date to limit the possibilities, i'm not (and the user) interrested in years that i can't select.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Is there anything else we should know?
I think the right disabled arrow if enough for understand that you can't go further in years.
I think it was originally done this way because the component responsible for rendering the cells didn't actually know what the
@raygervais sure I would appreciate if you're willing to take a stab at it and send me a PR.
@raygervais : i think it's in the
Actually the years view is build like that :
For the new behavior, if
Or for the fourth item, we can make
Thanks for the explanation @WizardPC, I'll get to that very soon. Apologies for the delay, just wrapping up loose ends during the final days of the school semester and preparing for a new job. If I got a WIP PR going, would you be able to guide if in the case I stray from the agreed upon logic?