-
Notifications
You must be signed in to change notification settings - Fork 244
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
Start calendar with current month #18
Comments
I made a simple workaround by displaying two calendars, first displays current year months and second months of next year. In next step I have simply hidden the past months of current year and hidden the months of next year. All accepted months from next year are detached and appended to first calendar to support responsiveness.
Don't forget to set startYear: new Date().getFullYear() on first calendar and startYear: new Date().getFullYear()+1 on second calendar. |
Yes, I needed that but as you can see I made a workaround, here is the solution (probably temporary address since it's not published yet, so I will update the url when so): http://www.shappa.si/koledar-new.html |
Ok super ! Given your example, I will add an option to remove the header. In this case it will not be present in the DOM (and not just hidden with CSS). |
I just added the option to display\hide the calendar header : |
this solution is ok for just viewing the calendar but when trying to select a date range between December and January it doesn't work... |
I know this thread is pretty old, but I'm working on this feature in the new version of the library: js-year-calendar |
The feature is available in js-year-calendar@v2.0.0. Check the options |
I didn't find an option to display calendar (12 months) starting with specific Date, current month.
The text was updated successfully, but these errors were encountered: