These docs are for an old release.
Info on upgrading to v5
dayRender
A hook for modifying a day cell’s DOM.
function( dayRenderInfo ) { }
dayRenderInfo
is a plain object with the following properties:
date |
The Date for the given day. |
---|---|
el |
The HTML element for the given day. |
view |
The current View Object. |
This callback lets you modify the day cells elements that are part of each calendar view.
You cannot return a new element. You must only modify the dayRenderInfo.el
(a <td>
element) that is provided.
This callback is called each time a cell needs to be freshly rendered.