Our pure JavaScript Scheduler component


Post by sheetalveer »

I have set up 2 views:
1) weekAndDay
2) weekDateAndMonth

I have drop down with 2 values: Daily & Weekly
If user selects Daily, weekAndDay view is set up.
If user selects Weekly, weekDateAndMonth view is set up.

Issue is when user switches from Daily to Weekly & then from weekly to daily, timeline scroll is positioned in between. I want to position it to left. Kindly suggest.

Attaching Screenshots.

Attachments
Weekly View.png
Weekly View.png (116.18 KiB) Viewed 1119 times
Daily View.png
Daily View.png (121.25 KiB) Viewed 1119 times
Daily View 1.png
Daily View 1.png (112.05 KiB) Viewed 1119 times

Post by mats »

You can use the https://www.bryntum.com/docs/scheduler/#Scheduler/view/mixin/TimelineScroll#function-scrollToDate method to scroll to the desired date after switching zoom level.


Post by sheetalveer »

can you show how to call that function using small code snippet? That would be helpful.


Post by mats »

scheduler.scrollToDate(new Date());

Post by sheetalveer »

I figured it out. Thank you so much :-)


Post Reply