TableColumn

sealed interface TableColumn

Width specification for one column of a com.conamobile.pdfkmp.dsl.table.

Use Fixed when the column has an explicit pixel width and Weight when the column should share the remaining space proportionally with other weighted columns. Mixing both kinds in the same table is supported — fixed widths are reserved first, then the remainder is distributed across weighted columns.

Inheritors

Types

Link copied to clipboard
data class Fixed(val width: Dp) : TableColumn

Reserves an explicit, immutable width for the column.

Link copied to clipboard
data class Weight(val weight: Float = 1.0f) : TableColumn

Lets the column grow into a share of the remaining table width. With two columns of weight 1f and 2f, the second receives twice the space of the first after fixed-width columns are accounted for.