Skip to main content

grid_header_class

Description

Specifies the CSS class that will be applied to the headers of the table's columns

grid_header_class: (columnName: string, column: any) => string | void;

Parameters

  • columnName - (required) string - the column's name (as specified in the "name" property of the column object)
  • column - (required) object - column object (as specified in the gantt.config.columns config)

Returns

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

Example

gantt.templates.grid_header_class = function(columnName, column){
return "";
};