TableHeader

@Serializable
data class TableHeader(val rows: List<TableHeaderRow>, val extraColumns: List<TableHeaderCell>)

Data class representing the header of a table.

Constructors

Link copied to clipboard
constructor(rows: List<TableHeaderRow>, extraColumns: List<TableHeaderCell>)

Properties

Link copied to clipboard

Extra columns to add at the end of the table.

Link copied to clipboard

The list of header rows in the table.

Functions

Link copied to clipboard
fun columnIndexes(headerRowIndex: Int, headerRowColumnIndex: Int, subColumnCount: Int = numberOfSubColumns(headerRowIndex)): Pair<Int, Int>

Calculates the column indexes for a given header row and column index.

Link copied to clipboard
fun numberOfColumns(rowIndex: Int): Int

Calculates the number of columns for a given row index.

Link copied to clipboard
fun numberOfSubColumns(headerRowIndex: Int): Int

Calculates the number of sub columns for a given header row index.

Link copied to clipboard

Calculates the maximum number of columns in the table.