Skip to main content

task_class

Description

Specifies the CSS class that will be applied to task bars

task_class: (start: Date, end: Date, task: Task) => string | void;

Parameters

  • start - (required) Date - the date when a task is scheduled to begin
  • end - (required) Date - the date when a task is scheduled to be completed
  • task - (required) Task - the task object

Returns

  • text - (string | void) - a CSS class for the item in question

Example

gantt.templates.task_class = function(start, end, task){return "";};