ColumnHelper

interface ColumnHelper<TData>

Typed helper for building column defs. The accessor member accepts either an AccessorFn or an accessor-key String and produces the corresponding accessor column def; display and group are the identity for symmetry with the JS API.

The first parameter of accessor is typed Any? because Kotlin cannot model "function or string" as a single type — pass a function for an accessor-fn column or a string for an accessor-key column.

Properties

Link copied to clipboard
abstract val accessor: (accessor: Any?, column: ColumnDef<TData, Any?>) -> ColumnDef<TData, Any?>

Builds an accessor column def from accessor (a function or a key string) and a base column template. The returned def is a shallow copy of column with accessorFn or accessorKey filled in.

Link copied to clipboard
abstract val display: (column: ColumnDef<TData, Any?>) -> ColumnDef<TData, Any?>

Returns column unchanged — for display columns.

Link copied to clipboard
abstract val group: (column: ColumnDef<TData, Any?>) -> ColumnDef<TData, Any?>

Returns column unchanged — for group columns.