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.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Accessor function — non-null on accessor-fn columns.

Link copied to clipboard

Accessor key. Non-null on accessor-key columns. May be a dot-separated path ("user.address.city"); the path is resolved at runtime.

Link copied to clipboard

Aggregated-cell template — used to render grouped/aggregated cells.

Link copied to clipboard

Aggregation fn for this column — see AggregationFnOption.

Link copied to clipboard

Cell template — a string or a (CellContext) -> Any? renderer.

Link copied to clipboard

Child column defs — non-null on group columns.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Filter fn for this column — see FilterFnOption.

Link copied to clipboard

Footer template — a string or a (HeaderContext) -> Any? renderer.

Link copied to clipboard
var getGroupingValue: (row: TData) -> Any??

Returns the grouping key for a row. Defaults to the cell value when omitted.

Link copied to clipboard

Per-column override for getUniqueValues.

Link copied to clipboard

Header template — a string or a (HeaderContext) -> Any? renderer.

Link copied to clipboard
var id: String?

Explicit column id. Required for display columns; for accessor-key columns it defaults to accessorKey when omitted.

Link copied to clipboard
Link copied to clipboard

Maximum size in pixels. Defaults to the platform max-safe integer.

Link copied to clipboard

Caller-supplied per-column metadata.

Link copied to clipboard

Minimum size in pixels.

Link copied to clipboard
var size: Double?

Preferred size in pixels.

Link copied to clipboard
Link copied to clipboard

Sort fn for this column — see SortingFnOption.

Link copied to clipboard

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.