Cell

class Cell<TData, TValue>

A single cell in the table — the intersection of a Row and a Column. Combines the core cell members with the ColumnGrouping feature members (getIsAggregated/getIsGrouped/getIsPlaceholder).

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
lateinit var column: Column<TData, TValue>

The column this cell belongs to.

Link copied to clipboard
lateinit var getContext: () -> CellContext<TData, TValue>

Returns the CellContext used by header/cell renderers.

Link copied to clipboard
lateinit var getIsAggregated: () -> Boolean

True when this cell holds an aggregated value for a grouped row.

Link copied to clipboard
lateinit var getIsGrouped: () -> Boolean

True when this cell is the grouping cell (the one whose column drove the group).

Link copied to clipboard
lateinit var getIsPlaceholder: () -> Boolean

True when this cell is a placeholder in a grouped row (neither grouped nor aggregated).

Link copied to clipboard
lateinit var getValue: () -> TValue

Returns the raw value at this cell.

Link copied to clipboard
lateinit var id: String

Stable cell id of the form "<rowId>_<columnId>".

Link copied to clipboard

Pinned-position tag attached to cells produced by the ColumnPinning feature's getLeftVisibleCells/getRightVisibleCells. null for unpinned cells; otherwise "left" or "right".

Link copied to clipboard
lateinit var renderValue: () -> TValue?

Returns the value to render, falling back to renderFallbackValue when null.

Link copied to clipboard
lateinit var row: Row<TData>

The row this cell belongs to.