EditableColumnBuilder

Builder for a single editable ColumnSpec. Extends ReadonlyColumnBuilder with editing capabilities.

Functions

Link copied to clipboard
fun align(alignment: Alignment)

Set alignment for cell content.

Link copied to clipboard
fun autoWidth(max: Dp? = null)

Enable automatic width based on measured content on first render; optionally cap with max.

Link copied to clipboard
fun cell(content: @Composable context(TableCellScope) BoxScope.(item: T, tableData: E) -> Unit)

Define body cell content.

Link copied to clipboard
fun editCell(canEdit: (T, Int) -> Boolean? = null, content: @Composable BoxScope.(T, E, onComplete: () -> Unit) -> Unit)

Define editing UI content. Receives the item, edit state, and an onComplete callback.

Link copied to clipboard
fun filter(type: TableFilterType<*>)

Attach a filter type supported by this column.

Link copied to clipboard
fun footer(content: @Composable BoxScope.(E) -> Unit)

Define footer cell content.

Link copied to clipboard
fun groupHeader(renderer: @Composable BoxScope.(Any?) -> Unit)

Optional custom renderer for the group header.

Link copied to clipboard
fun header(content: @Composable (E) -> Unit)

Set custom composable header content.

fun header(text: String)

Set simple text header.

Link copied to clipboard

Enable or disable click-to-sort for the whole header cell.

Link copied to clipboard

Enable or disable default header decorations for this column.

Link copied to clipboard
fun resizable(value: Boolean)

Enable/disable user resizing.

Link copied to clipboard
fun rowHeight(min: Dp? = null, max: Dp? = null)

Configure row height bounds that will be considered when the table uses dynamic row height. If the table is in fixed height mode, these values are ignored.

Link copied to clipboard
fun sortable()

Mark column as sortable.

Link copied to clipboard
fun title(content: @Composable () -> String)

Set optional plain-text title (used for chips/tooltips).

Link copied to clipboard
fun visible(value: Boolean)

Set visibility for this column.

Link copied to clipboard
fun width(min: Dp, pref: Dp? = null)

Set minimum and preferred width.