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

Method to change the first day in the timeline view with a custom duration of a few days #4929

Closed
acerix opened this issue Apr 24, 2019 · 5 comments
Assignees
Labels
Confirmed View Date Range Customization about which dates/times are displayed
Milestone

Comments

@acerix
Copy link
Member

acerix commented Apr 24, 2019

Request for a method to change the first day in multi-day timeline view.

gotoDate achieves that when the day is not already visible, but when the day is already somewhere in the view, gotoDate does not change it to the first day. As a workaround, gotoDate can first be called with a date outside the view (eg. 1970-01-01) then back to the date which makes it the first day of the week.

Desired effect can be seen by increment the date in this demo.

https://codepen.io/acerix/pen/eoPmOx?editors=0010

Reported in https://fullcalendar.freshdesk.com/a/tickets/818

@acerix
Copy link
Member Author

acerix commented Apr 25, 2019

Also could document how the first day is determined in timeline view with a custom duration which has a section on this page:

https://fullcalendar.io/docs/timeline-view

@harohl
Copy link

harohl commented Apr 25, 2019

The same issues exists for incrementDate. This method should increment the start date of the view whether or not the view span is smaller than the increment. If you are on a 9 day view, increment date will not work to move the calendar forward less than 9 days.

@ghost
Copy link

ghost commented May 8, 2019

yeah, same issue for me

@arshaw arshaw transferred this issue from fullcalendar/fullcalendar-workspace Jul 30, 2019
@arshaw arshaw added Confirmed View Date Range Customization about which dates/times are displayed labels Jul 30, 2019
@animator013
Copy link

Same issue here.

@arshaw
Copy link
Member

arshaw commented Jun 16, 2021

fix is released in v5.8.0

updated repro:
https://codepen.io/arshaw/pen/dyvwExy?editors=0010

@arshaw arshaw closed this as completed Jun 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Confirmed View Date Range Customization about which dates/times are displayed
Projects
None yet
Development

No branches or pull requests

4 participants