TableRow

class TableRow(cells: List<Cell>)

The row of the summary table may consist of multiple lines.

Constructors

TableRow
Link copied to clipboard
fun TableRow(vararg cells: Cell)
TableRow
Link copied to clipboard
fun TableRow(vararg lines: String)
TableRow
Link copied to clipboard
fun TableRow(cells: List<Cell>)

Functions

columnWidth
Link copied to clipboard
fun columnWidth(column: Int): Int

Calculate the width of the cell in the column of the row. If row has no cell with the given index, returns 0.

format
Link copied to clipboard
fun format(columnSeparator: String, columnsWidths: List<Int>): List<String>

Format all lines of the row to fit the specified column widths.

Properties

lines
Link copied to clipboard
val lines: List<List<String>>

Represent the row as a list of lines