TableNode

data class TableNode(val columns: List<TableColumn>, val rows: List<TableRowNode>, val headerRow: TableRowNode?, val border: TableBorder, val cornerRadius: Dp, val cellPadding: Padding, val repeatHeader: Boolean = true) : PdfNode

Tabular layout: a fixed sequence of columns and a stream of rows whose cells line up underneath them.

Constructors

Link copied to clipboard
constructor(columns: List<TableColumn>, rows: List<TableRowNode>, headerRow: TableRowNode?, border: TableBorder, cornerRadius: Dp, cellPadding: Padding, repeatHeader: Boolean = true)

Properties

Link copied to clipboard

outline and separator-line configuration.

Link copied to clipboard

default padding applied to every cell unless the cell overrides it.

Link copied to clipboard

specification of every column's width.

Link copied to clipboard

outer rectangle corner radius. Set to Dp.Zero for sharp corners.

Link copied to clipboard

optional decorated row drawn at the top with its own default styling. Kept separate so layout / rendering can apply header-specific decorations.

Link copied to clipboard
val repeatHeader: Boolean = true

when the Slice page-break strategy splits the table across pages, repeat headerRow at the top of every continuation page.

Link copied to clipboard

ordered list of body rows. The header row, if any, is stored at headerRow.