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
e(DayPilot.Event) - object to focus
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]
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot