search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

DayPilot.Gantt - Change/modify links on render?

Asked by Leo
6 months ago.

Hi there,

in DayPilot.Gantt, is there any possibility to influence for example link colour before rendering it?

Something like onBeforeLinkRender?

We’d like to highlight links in red where the “to” task starts before the “from“ task finished.

Many thanks!

Answer posted by Dan Letecky [DayPilot]
6 months ago.

At this moment, there is no special onBeforeLinkRender event.

However, you can set the properties directly in the data source. You can customize the look using properties like color, style, and cssClass (see the API docs):

const links = [
  {
     from: 1,
     to: 2,
     color: "#00cc00",
     cssClass: "my-link"
  }
];
dp.update({links});
This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.