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 cornery(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 cellsremoveClass(className)- removes a CSS class from all matched cellshtml(string)- sets the HTML content of all matched cells
Example
dp.cells.findByPixels(320, 200).html("test");See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot