DayPilot.Scheduler.events.scrollIntoView

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 display

  • options (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 of date within 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()

DayPilot.Event Class

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript