Our pure JavaScript Scheduler component


Post by nate »

I'd like to initialize the scheduler to start at today's date but allow unlimited scrolling in either left/right direction. Is this doable? Thanks in advance.


Post by mats »

Doable but not yet supported, you can track this ticket to get informed when supported. https://github.com/bryntum/support/issues/1114


Post by nate »

Ok, thanks Mats. I think we'll just set some arbitrarily small and large start and end dates. Any reason that wouldn't work? It seems to perform ok.


Post by mats »

No that's a decent approach and you could also switch views as you scroll too to mimic infinite scroll until we've implemented it.


Post by Animal »

As an update, here's what is incoming.

infiniteScroll: true enables never ending scrolling along the time axis, whichever direction that is, horizontal or vertical.

There are configs which, when infiniteScroll is set, affect how wide the physical "window" of time is that the rendered timeline encapsulates and how close to the edge it may scroll before being shifted to a new time range.

Upon a shift to a new time range, the scrollLeft is reset to keep the visual and temporal scroll position stable. (Keep an eye on the thumb in the bottom scrollbar) The end result is smooth scrolling forever.

New data can be loaded by your app when this happens using the EventStore's loadDateRange event. You can see a Toast appearing when this happens:

InfiniteScroll.gif
InfiniteScroll.gif (1.87 MiB) Viewed 478 times

Post Reply