DayPilot.Scheduler.cells.findByPixels

Finds a cell by its pixel coordinates.

Declaration

DayPilot.Scheduler.cells.findByPixels(x, y);

Parameters

  • x - horizontal pixel position (starting at 0 in the upper-left corner)
  • y - vertical pixel position (start at 0 in the upper-left corner)

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

dp.cells.findXy(320, 200).html("test");