DayPilot.Scheduler.events.focus

The events.focus() method moves native browser focus to the specified Scheduler event and scrolls it into the viewport if necessary.

Declaration

DayPilot.Scheduler.events.focus(e)

Parameters

You can get the event object using events.find().

Notes

The browser focus applied by events.focus() is different from the Scheduler keyboard focus.

Example

const event = dp.events.find("123");
dp.events.focus(event);

See Also

DayPilot.Scheduler.events.find()

Keyboard [doc.daypilot.org]

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript