CellFormatter

typealias CellFormatter<C> = FormattingDsl.(cell: C) -> CellAttributes?

A lambda function expecting a CellAttributes or null given an instance of a cell: C of the dataframe.

You have access to the FormattingDsl in the context.

The formatting DSL allows you to create and combine CellAttributes to apply to one or multiple cells of a dataframe such that they have specific CSS attributes applied to them when rendered to HTML.

For instance, to specify black, bold text on a white background, you could write:

background(white) and textColor(black) and bold

It's also possible to define your own colors using rgb or interpolate colors using linear.

Use attr if you want to specify a custom CSS attribute.

For more information: See format on the documentation website.