DayPilot.Scheduler.keyboard.focusCell

The keyboard.focusCell() method sets the keyboard focus of the JavaScript Scheduler to the default cursor position for the specified cell.

Available since 2021.3.5070.

Declaration

DayPilot.Scheduler.keyboard.focusCell(start, resource);

Parameters

  • start (DayPilot.Date or string) - point in time that specifies the horizontal position of the cell; it can be anywhere inside the cell

  • resource (number or string) - resource ID that specifies the vertical position of the cell

Notes

If the cell cannot be found, the method throws an exception.

Example

dp.keyboard.focusCell("2026-01-01T09:00:00", "R1");

See Also

DayPilot.Scheduler.keyboard.focusEvent()

DayPilot.Scheduler.keyboard.getFocus()

DayPilot.Scheduler.keyboard.move()

Keyboard Support [doc.daypilot.org]

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript