ColumnSpec

constructor(key: C, header: @Composable (E) -> Unit, cell: @Composable context(TableCellScope) BoxScope.(T, E) -> Unit, valueOf: (T) -> Any?, title: @Composable () -> String? = null, sortable: Boolean = false, resizable: Boolean = true, visible: Boolean = true, width: Dp? = null, minWidth: Dp = 10.dp, autoWidth: Boolean = false, autoMaxWidth: Dp? = null, alignment: Alignment = Alignment.CenterStart, minRowHeight: Dp? = null, maxRowHeight: Dp? = null, filter: TableFilterType<*>? = null, groupHeader: @Composable BoxScope.(Any?) -> Unit? = null, headerDecorations: Boolean = true, headerClickToSort: Boolean = true, editable: Boolean = false, canStartEdit: (T, Int) -> Boolean? = null, editCell: @Composable BoxScope.(T, E, onComplete: () -> Unit) -> Unit? = null, footer: @Composable BoxScope.(E) -> Unit? = null)

Parameters

key

unique column key

header

composable content for the header cell; receives table state data

cell

composable content for each row cell

valueOf

function that extracts the comparable value of this column from T; used for grouping and other logic

title

optional plain-text title for use in places like active filter chips

sortable

whether the column participates in sorting

resizable

whether user can resize the column

visible

whether column is currently visible

width

preferred width override; null uses table defaults

minWidth

minimal width when resizable

autoWidth

whether to auto-fit width to measured content after first render

autoMaxWidth

optional cap for auto-fitted width

alignment

alignment for cell content

minRowHeight

optional minimal row height when table uses dynamic row height

maxRowHeight

optional maximal row height when table uses dynamic row height

filter

optional filter type provided by this column

groupHeader

optional custom renderer for the group header

headerDecorations

whether to render built-in sort/filter icons in the header cell

headerClickToSort

whether clicking the entire header cell toggles sorting

footer

optional composable content for the footer cell; receives table state data