HeaderColFormatter

A lambda used to format a column header (its displayed name) when rendering a dataframe to HTML.

The lambda runs in the context of FormattingDsl and receives the ColumnWithPath of the header to format. Return a CellAttributes (or null) describing the CSS you want to apply to the header cell.

Examples:

  • Center the header: attr("text-align", "center")

  • Make it bold: bold

  • Set a custom color: textColor(rgb(10, 10, 10))

For more information: See formatHeader on the documentation website.