DayPilot.Scheduler.getCoords

The getCoords() method returns information about the current mouse cursor position (relative to the Scheduler grid).

Available since 2019.2.3817.

Syntax

DayPilot.Scheduler.getCoords();

Return Value

An object with the following properties:

  • x - horizontal position in pixels
  • y - vertical position in pixels
  • time - current position in the timeline (DayPilot.Date object)
  • row - current row (DayPilot.Row object)
  • cell - current grid cell

It returns null if the current position cannot be read (e.g. mouse is outside of the grid).