FormatClause
An intermediate class used in the format operation.
This class itself does nothing—it is just a transitional step before specifying how to format the selected columns. It must be followed by one of the positioning methods to produce a new FormattedFrame; a DataFrame with HTML formatting data.
Use the following function to filter the rows to format:
where– filters the rows to format using aRowValueFilter.at– Only format in rows with certain indices.notNull– Only format cells that have non-null values.
Use the following functions to finalize this formatting round:
with– Specifies how to format the cells using aCellFormatter.perRowCol– Specifies how to format each cell individually using aRowColFormatter.linearBg– Interpolates between two colors to set the background color of each numeric cell based on its value. Shorthand for.with{background(linear(it, from, to)) }notNull– Specifies how to format non-null cells using aCellFormatter. Shorthand for.notNull().with { }.
For more information: See format on the documentation website.
See Grammar for more details.
Constructors
Properties
Functions
Only format the selected columns at given row indices.
Filters the format-selection to only include cells where the value is not null.
Creates a new FormattedFrame that uses the specified CellFormatter to format selected non-null cells of the dataframe.
Creates a new FormattedFrame that uses the specified RowColFormatter to format the selected cells of the dataframe.
Filters the rows to format using a RowValueFilter.
Creates a new FormattedFrame that uses the specified CellFormatter to format the selected cells of the dataframe.