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

Allow more than 12 months in calendar #73

Open
Cavva79 opened this issue Aug 29, 2021 · 1 comment
Open

Allow more than 12 months in calendar #73

Cavva79 opened this issue Aug 29, 2021 · 1 comment

Comments

@Cavva79
Copy link

Cavva79 commented Aug 29, 2021

Hi @Paul-DS,
as you asked me to open a new issue for this feature in #32 I open this issue copying from my comment #32 (comment)

I'm trying to show a period of time from 11 nov 2020 to 10 nov 2021. Obviusly it is an year but spans on 13 months.
I think this

numberMonthsDisplayed: !isNaN(parseInt(opt.numberMonthsDisplayed)) && opt.numberMonthsDisplayed > 0 && opt.numberMonthsDisplayed <= 12 ? parseInt(opt.numberMonthsDisplayed) : 12,

could be easy switched to

numberMonthsDisplayed: !isNaN(parseInt(opt.numberMonthsDisplayed)) 
     && opt.numberMonthsDisplayed > 0 ? parseInt(opt.numberMonthsDisplayed) : 12,

to allow more than 12 months or try to implement intermediate startDate.

@fhfournier
Copy link

numberMonthsDisplayed: 13 still not working on version 2.0.0

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

No branches or pull requests

2 participants