# task_row_class

### Description

@short: Specifies the CSS class that will be applied to the row of the timeline area

@signature: task_row_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

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

### Details

Returns the CSS class for the item in question.

### Related Guides
- [Templates of the Timeline Area](guides/timeline-templates.md)
