Our pure JavaScript Scheduler component


Post by st.tesar »

Hello,
I'm trying to fix the position of the current timeline and scrolling horizontally the scheduler every timeline refresh.
Do you have an example or a suggestion about this case?

Thanks for your support!

Post by mats »

You can use our API to scroll the timeline easily. See this demo: https://bryntum.com/examples/scheduler/scrollto/

Post by st.tesar »

I already implement the scrollToDate() function in a timer that every 30 seconds scrolls the scheduler.
let timer = interval(30000);
      timer.subscribe(t => {
        this.schedulerEngine.scrollToDate(
          DateHelper.add(new Date(), 0, 'days'),
          {
              highlight: false,
              animate : {
                  easing   : 'easeFromTo',
                  duration : 1000
              },
              block   : 'center'
          }
        );
      });
I wondered if there is an event triggered by the update of the timeline position.

Thank you!

Post by pmiklashevich »

Pavlo Miklashevych
Sr. Frontend Developer


Post Reply