DayPilot.Scheduler.cells.findXy

Finds a cell by its grid coordinates (index, not pixels).

Declaration

DayPilot.Scheduler.cells.findXy(x, y);
DayPilot.Scheduler.cells.findXy(coordinates);

Parameters

  • x - horizontal cell index (starting at 0 in the upper-left corner)
  • y - vertical cell index (start at 0 in the upper-left corner)
  • coordinates - an array of coordinate objects, e.g. [{x:0, y:0}, {x:0, y:1}]

Return Value

An array of cells. The array object has direct methods for modifying all cells in an array:

  • addClass(className)
  • removeClass(className)
  • html(string)

Examples

Write "test" HTML to the cell in the upper-left corner:

dp.cells.findXy(0, 0).html("test");