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 borderStyle: TextStyle

A text style to apply to the cell border characters

Link copied to clipboard
abstract var borderType: BorderType

The characters to use to draw cell edges

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
abstract var tableBorders: Borders?

Which borders to draw on the outer edge of the table.

Link copied to clipboard

Vertical alignment of cell contents

Link copied to clipboard
abstract var whitespace: Whitespace?

Functions

Link copied to clipboard
abstract fun body(init: SectionBuilder.() -> Unit)

Configure the body section.

Link copied to clipboard
abstract fun captionBottom(widget: Widget)

Add a widget as a caption to the bottom of this table.

abstract fun captionBottom(text: String, align: TextAlign = TextAlign.CENTER)

Add text as a caption to the bottom of this table.

Link copied to clipboard
abstract fun captionTop(widget: Widget)

Add a widget as a caption oto the top of this table.

abstract fun captionTop(text: String, align: TextAlign = TextAlign.CENTER)

Add text as a caption to the top of this table.

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
abstract fun footer(init: SectionBuilder.() -> Unit)

Configure the footer section.

Link copied to clipboard
abstract fun header(init: SectionBuilder.() -> Unit)

Configure the header section.

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
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)