KTableColumn

data class KTableColumn<T>(val key: String, val header: String, val weight: Float = 1.0f, val sortable: Boolean = false, val align: TextAlign = TextAlign.Start, val cell: @Composable RowScope.(row: T) -> Unit)(source)

Describes one column in a KDataTable preset.

This is the data-driven convenience layer on top of the primitive Table / TableHead / TableCell slots.

Constructors

Link copied to clipboard
constructor(key: String, header: String, weight: Float = 1.0f, sortable: Boolean = false, align: TextAlign = TextAlign.Start, cell: @Composable RowScope.(row: T) -> Unit)

Properties

Link copied to clipboard
Link copied to clipboard
val cell: @Composable RowScope.(row: T) -> Unit
Link copied to clipboard
Link copied to clipboard
val key: String
Link copied to clipboard
Link copied to clipboard