DayPilot.Scheduler.onBeforeLinkRender

The onBeforeLinkRender event is fired by the JavaScript Scheduler for each link before it is rendered. You can use this event to customize the link appearance.

Declaration

DayPilot.Scheduler.onBeforeLinkRender(args)

Parameters

  • args.data (object) - a shallow copy of the source link data object (see also DayPilot.Link.data)

  • args.from (DayPilot.Event object) - the link source event (read-only)

  • args.to (DayPilot.Event object) - the link target event (read-only)

Example

onBeforeLinkRender: (args) => {
  args.data.color = "orange";
}