EditableColumnBuilder

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

Functions

Link copied to clipboard

Draw this column's condition chips in the active filters row and in a group's popover. Replaced by filterChipContent, which keeps the table's chip around the content, and by TableFilterChipStyle.chip, whose DefaultFilterChip draws the table's chip with overrides for its parts. The filter panel opens on TableFilterChipContext.onOpen. A group of conditions on this column alone does not use it.

Link copied to clipboard
fun align(alignment: Alignment)

Set alignment for cell content. The header follows it unless headerAlign overrides it.

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

Draw the content of this column's condition chips in the active filters row and in a group's popover, e.g. a rating as stars. The table keeps the chip around it: its click, its × and the panel. The content may be interactive and change its own condition through TableFilterChipNode.Condition.onChange. A group of conditions on this column alone is drawn as a group and does not use it.

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
fun headerAlign(alignment: Alignment)

Set alignment for header content, overriding the column's align.

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 numeric()

Mark the column as numeric: content aligns to the end and digits use tabular figures.

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.