sectionColor

Type: function(section, defaultColor, extraConfig)
Default: The category color of the section, or grey if no category has been assigned.

A function that determines the section color. Must return a CSS string (e.g. 'red' or '#ccc').

The parameters that are passed to sectionColor are:

  • section: the current section
  • defaultColor: the default section color
  • extraConfig: see extraConfig
sectionColor: function(section, defaultColor, extraConfig) {
if(section.label === 'Section 1') {
return 'red';
}
return defaultColor;
}