DayPilot.Scheduler.cells.findByPixels

The cells.findByPixels() method finds Scheduler cells by their pixel coordinates.

Declaration

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

Parameters

  • x (number) - horizontal pixel position, starting at 0 in the upper-left corner

  • y (number) - vertical pixel position, starting at 0 in the upper-left corner

Return Value

Returns an array of matching cells. The returned collection exposes helper methods that modify all cells in the array:

  • addClass(className) - adds a CSS class to all matched cells

  • removeClass(className) - removes a CSS class from all matched cells

  • html(string) - sets the HTML content of all matched cells

Example

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

See Also

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript