ColumnDef
Definition of a column. Carries the identifier (id/header), the accessor (accessorKey or accessorFn), nested columns for group columns, plus the feature-specific configuration (enableSorting, filterFn, size, ...). All fields are nullable; which fields you set determines what kind of column you build.
Properties
Accessor function — non-null on accessor-fn columns.
Accessor key. Non-null on accessor-key columns. May be a dot-separated path ("user.address.city"); the path is resolved at runtime.
Aggregated-cell template — used to render grouped/aggregated cells.
Aggregation fn for this column — see AggregationFnOption.
Cell template — a string or a (CellContext) -> Any? renderer.
Filter fn for this column — see FilterFnOption.
Footer template — a string or a (HeaderContext) -> Any? renderer.
Returns the grouping key for a row. Defaults to the cell value when omitted.
Per-column override for getUniqueValues.
Header template — a string or a (HeaderContext) -> Any? renderer.
Explicit column id. Required for display columns; for accessor-key columns it defaults to accessorKey when omitted.
Caller-supplied per-column metadata.
Sort fn for this column — see SortingFnOption.
How null/undefined values are sorted. One of false, -1, 1, "first" or "last". Typed as Any? because Kotlin cannot express this mixed union directly.