TimelineScroll
Configs
3
Configs
3This config defines the size of the start and end invisible parts of the timespan when infiniteScroll set to true.
It should be provided as a coefficient, which will be multiplied by the size of the scheduling area.
For example, if bufferCoef is 5 and the panel view width is 200px then the timespan will be calculated to
have approximately 1000px (5 * 200) to the left and 1000px to the right of the visible area, resulting
in 2200px of totally rendered content.
This config defines the scroll limit, which, when exceeded will cause a timespan shift.
The limit is calculated as the panelWidth * bufferCoef * bufferThreshold. During scrolling, if the left or right side
has less than that of the rendered content - a shift is triggered.
For example if bufferCoef is 5 and the panel view width is 200px and bufferThreshold is 0.2, then the timespan
will be shifted when the left or right side has less than 200px (5 * 200 * 0.2) of content.
Set to true to automatically adjust the panel timespan during scrolling in the time dimension,
when the scroller comes close to the start/end edges.
The actually rendered timespan in this mode (and thus the amount of HTML in the DOM) is calculated based on the bufferCoef option, and is thus not controlled by the startDate and endDate configs. The moment when the timespan shift happens is determined by the bufferThreshold value.
To specify initial point in time to view, supply the visibleDate config.
Properties
7
Properties
7Class hierarchy
Infinite scroll
Set to true to automatically adjust the panel timespan during scrolling in the time dimension,
when the scroller comes close to the start/end edges.
The actually rendered timespan in this mode (and thus the amount of HTML in the DOM) is calculated based on the bufferCoef option, and is thus not controlled by the startDate and endDate configs. The moment when the timespan shift happens is determined by the bufferThreshold value.
To specify initial point in time to view, supply the visibleDate config.
Scrolling
Get/set the scrollLeft value of the SubGrid that holds the scheduler.
This may be negative when the writing direction is right-to-left.
Get/set vertical scroll
Get/set the writing direction agnostic horizontal scroll position.
This is always the positive offset from the scroll origin whatever the writing direction in use.
Applies to the SubGrid that holds the scheduler
A Scroller which scrolls the time axis in whatever mode the
Scheduler is configured, either horizontal or vertical.
The width and height dimensions are replaced by size. So this will expose the following properties:
clientSizeThe size of the time axis viewport.scrollSizeThe full scroll size of the time axis viewportpositionThe position scrolled to along the time axis viewport
Functions
5
Functions
5Horizontal scrolling. Applies to the SubGrid that holds the scheduler
| Parameter | Type | Description |
|---|---|---|
x | Number | |
options | BryntumScrollOptions | Boolean | How to scroll. May be passed as |
A promise which is resolved when the scrolling has finished.
Scrolls the subgrid that contains the scheduler
| Parameter | Type | Description |
|---|---|---|
x | Number | |
options | BryntumScrollOptions | Boolean | How to scroll. May be passed as |
A promise which is resolved when the scrolling has finished.
Scrolls the timeline "tick" encapsulating the passed Date into view according to the passed options.
| Parameter | Type | Description |
|---|---|---|
date | Date | The date to which to scroll the timeline |
options | BryntumScrollOptions | How to scroll. |
A Promise which resolves when the scrolling is complete.
Scrolls to current time.
| Parameter | Type | Description |
|---|---|---|
options | BryntumScrollOptions | How to scroll. |
A Promise which resolves when the scrolling is complete.
Vertical scrolling
| Parameter | Type | Description |
|---|---|---|
y | Number | |
options | BryntumScrollOptions | Boolean | How to scroll. May be passed as |
A promise which is resolved when the scrolling has finished.