DayPilot.Scheduler.events.scrollIntoView

The events.scrollIntoView() method finds the specified event and moves the Scheduler viewport to make sure the event is visible.

You can get the target DayPilot.Event object using events.find().

Declaration

DayPilot.Scheduler.events.scrollIntoView(e[, options]);

Parameters

  • e - event to be displayed (DayPilot.Event object)

  • options - object with additional options (available since 2025.4.6726)

Options:

  • options.animation - animation type: "none" | "fast" | "normal" | "slow" | "linear" (default value: "fast")

  • options.position - target position of  date within the viewport: "left" | "middle" | "right" (default value: "left")

Example

const e = dp.events.find("123");
dp.events.scrollIntoView(e, { animation: "none"} );