Page 1 of 1

Angular 7 - Scheduler - Current timeline page scroll

Posted: Fri Jan 11, 2019 1:06 pm
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!

Re: Angular 7 - Scheduler - Current timeline page scroll

Posted: Fri Jan 11, 2019 1:09 pm
by mats
You can use our API to scroll the timeline easily. See this demo: https://bryntum.com/examples/scheduler/scrollto/

Re: Angular 7 - Scheduler - Current timeline page scroll

Posted: Fri Jan 11, 2019 5:53 pm
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!

Re: Angular 7 - Scheduler - Current timeline page scroll

Posted: Fri Jan 11, 2019 9:05 pm
by pmiklashevich