The time indicator will show up automatically for the current day when the timeline type is day or week.
Where the view starts depends on the type and the size as well. There is a reference date that the current view is calculated from. This reference date can be set with the refDate option.
Thanks, it has helped, but unfortunately it’s still not working
My timeline type is month and I just want to scroll to the current date. I didn’t get it working with my tries with the refDate .
Can you please help me how to achieve this?
Thanks!
If you just want to navigate to the current day programmatically, then you can use the navigate method of the Eventcalendar instance. You can access the instance using a @ViewChild decorator and a template variable, for example:
Thanks!
Yes, that helped and it’s scrolling now. But it’s not scrolling to the current date (stopping earlier) (log: Wed Mar 30 2022 23:20:30 GMT+0200)