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

Expose currentYear as part of the DayTemplateContext #2944

Closed
CarlosTorrecillas opened this issue Dec 24, 2018 · 0 comments · Fixed by #3540
Closed

Expose currentYear as part of the DayTemplateContext #2944

CarlosTorrecillas opened this issue Dec 24, 2018 · 0 comments · Fixed by #3540

Comments

@CarlosTorrecillas
Copy link

Feature request description:

Expose currentYear property as part of the DayTemplateContext:

https://ng-bootstrap.github.io/#/components/datepicker/api#DayTemplateContext

At the moment it is available the currentMonth however it would be nice if the currentYear could also be exposed. The reason for this request is that there are some custom checks performed against the date to apply certain CSS. In order to achieve that, I use current month but also the current year therefore my validation cannot be fully completed.

I thought that would be already exposed but when I added the let-currentYear="currentYear" but got undefined and confirmed in the current documentation that property is not exposed?

Versions of Angular, ng-bootstrap and Bootstrap:

Angular: 7.0.1

ng-bootstrap: 4.0.0

Bootstrap: 4.1.3

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

Successfully merging a pull request may close this issue.

2 participants