Properties

Link copied to clipboard

If false, (the default) padding in fixed width columns will reduce the content width so that the total width is always exactly the specified width.

Link copied to clipboard
abstract var align: TextAlign?
Link copied to clipboard
abstract var cellBorders: Borders?

Borders around each individual cell.

Link copied to clipboard
abstract var overflowWrap: OverflowWrap?
Link copied to clipboard
abstract var padding: Padding?

The padding around each cell

Link copied to clipboard
abstract var style: TextStyle?
Link copied to clipboard

Vertical alignment of cell contents

Link copied to clipboard
abstract var whitespace: Whitespace?

Functions

Link copied to clipboard
abstract fun column(i: Int, init: ColumnBuilder.() -> Unit)

Configure a single column, which the first column at index 0.

Link copied to clipboard
open fun padding(block: Padding.Builder.() -> Unit)

open fun padding(all: Int)

Set the padding around each cell

Link copied to clipboard
abstract fun row(init: RowBuilder.() -> Unit)

Add a row.

abstract fun row(vararg cells: Any?, init: RowBuilder.() -> Unit = {})

Add a row with one or more cells.

Link copied to clipboard
abstract fun rowFrom(cells: Iterable<Any?>, init: RowBuilder.() -> Unit = {})

Add all cells from an iterable.

Link copied to clipboard
abstract fun rowStyles(style1: TextStyle, style2: TextStyle, vararg styles: TextStyle)

Add styles to alternating rows. If there are more rows than styles, the styles will loop.

Link copied to clipboard
open fun style(color: Color? = null, bgColor: Color? = null, bold: Boolean = false, italic: Boolean = false, underline: Boolean = false, dim: Boolean = false, inverse: Boolean = false, strikethrough: Boolean = false, hyperlink: String? = null)