Column definition

The full ColumnDefinition<Row> field reference — field, id, type, and the rest, with links to where each has more to say.

Last updated August 24, 2026

Every entry in columns is a ColumnDefinition<Row>, the same shape defineColumnsFromRows produces automatically for a column left undeclared. This page lists every field; several have a whole page of their own, linked from the description below.

Fields#

FieldTypeDefaultDescription
fieldFieldPath<Row> | stringPath to this cell's value: a key of Row, or "Parent.Child" for a leaf one level inside a nested object.
idstringfieldStable identity for state keyed by this column. Needed when two columns render the same field differently.
type"dateTime" | "date" | "time" | "number" | "string" | "boolean" | "decimal" | "currency" | "percent""string"The value type of this column's cells.
alignment"left" | "center" | "right""left" ("right" for numbers)Alignment of this column's cells.
headerTemplateNode | (() => Node)Header content, or a function returning it at render time. See column templates.
cellTemplate(context: CellTemplateContext<Row>) => NodeRenders this column's cells in place of the raw value. See column templates.
footerTemplate(context: FooterTemplateContext<Row>) => NodeRenders this column's own aggregate result in a group header or the grand-total footer. See aggregate functions.
widthnumberWidth in px this column starts at. See column resizing.
minWidth / maxWidthnumberBounds a resize may not drag past. See column resizing.
resizablebooleanresizableColumnsWhether this column can be resized, overriding the grid-level default. See column resizing.
reorderablebooleanreorderableColumnsWhether this column can be dragged to a new position. See column reordering.
sortablebooleansortableColumnsWhether this column can be sorted. See column sorting.
groupablebooleangroupableColumnsWhether this column can be grouped by. See row grouping.
groupToggleIconbooleangroupToggleIconColumnsWhether a groupable header shows its group-toggle icon. Purely a rendering choice. See row grouping.
groupByDraggablebooleangroupByDraggableColumnsWhether this column's header may be dragged into the group-by bar. See row grouping.
wrap{ header?, cells? }all offLets this column's header and/or cell text wrap onto multiple lines instead of eliding to one.
headerClassNamestringExtra class names appended to this column's th.
cellClassNamestringExtra class names appended to this column's td, on every row.

See also#

Edit this page on GitHub