DayPilot.Month.afterEventRender

The afterEventRender event handler fires after an event is rendered and provides access to the rendered event <div> element.

This is a legacy event handler. Use onAfterEventRender instead.

Declaration

afterEventRender(e, div)

Parameters

  • e (DayPilot.Event) - the event reference

  • div (object) - reference to the event <div> element

Notes

api=1 only.

Example

const month = new DayPilot.Month("dp", {
  afterEventRender: (e, div) => {
    div.style.fontWeight = "bold";
  },
  // ...
});
month.init();