The events.scrollIntoView() method finds the specified event and scrolls the Scheduler so the event is visible.
You can get the target DayPilot.Event object using DayPilot.Scheduler.events.find().
Declaration
DayPilot.Scheduler.events.scrollIntoView(e[, options]);Parameters
e(DayPilot.Event) - target item to displayoptions(object) - additional options (available since 2025.4.6726)
Notes
The options object supports the following properties:
options.animation- animation type:"none","fast","normal","slow", or"linear"; the default value is"fast"options.position- target position ofdatewithin the viewport:"left","middle", or"right"; the default value is"left"
Example
const e = dp.events.find("123");
dp.events.scrollIntoView(e, { animation: "none" });See Also
DayPilot.Scheduler.events.find()
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot