DayPilot.Scheduler.cells.findXy

The cells.findXy() method finds Scheduler cells by their grid coordinates (indexes, not pixels).

Declaration

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

Parameters

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

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

  • coordinates (array) - an array of coordinate objects, for example [{x: 0, y: 0}, {x: 0, y: 1}]

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

Writes test HTML to the cell in the upper-left corner:

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

See Also

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript