Angular 7 - Scheduler - Current timeline page scroll

Our pure javascript Scheduler component
Post Reply
User avatar
st.tesar
Posts: 5
Joined: Fri Jan 11, 2019 11:55 am

Angular 7 - Scheduler - Current timeline page scroll

Post by st.tesar » Fri Jan 11, 2019 1:06 pm

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!

User avatar
mats
Core Developer
Core Developer
Posts: 13362
Joined: Sat Dec 19, 2009 11:41 pm
Location: Sweden
Contact:

Re: Angular 7 - Scheduler - Current timeline page scroll

Post by mats » Fri Jan 11, 2019 1:09 pm

You can use our API to scroll the timeline easily. See this demo: https://bryntum.com/examples/scheduler/scrollto/
Tired of debugging javascript errors in web applications? Try our new error logging service RootCause, or read more on the Sencha blog

@bryntum
Facebook
API documentation

User avatar
st.tesar
Posts: 5
Joined: Fri Jan 11, 2019 11:55 am

Re: Angular 7 - Scheduler - Current timeline page scroll

Post by st.tesar » Fri Jan 11, 2019 5:53 pm

I already implement the scrollToDate() function in a timer that every 30 seconds scrolls the scheduler.

Code: Select all

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!

User avatar
pmiklashevich
Core Developer
Core Developer
Posts: 991
Joined: Fri Apr 01, 2016 11:08 am

Re: Angular 7 - Scheduler - Current timeline page scroll

Post by pmiklashevich » Fri Jan 11, 2019 9:05 pm

Pavel Miklashevich - Core Developer

Post Reply