DayPilot.Gantt.onBeforeTaskRender

Declaration

DayPilot.Gantt.onBeforeTaskRender(args)

Parameters

  • args.type (string) - calculated task type: "Task" | "Group" | "Milestone"
  • args.data (object) - task data (a shallow copy of the original data object)

Note: The args.task.children property is not available in this event.

Example

dp.onBeforeTaskRender = function(args) {
  args.data.cssClass = "important-task";
  args.data.box.html = "Task description";
};