Returned by table.getColumn(id) or accessed from table.getAllColumns().
Properties
Property
Type
Description
id
string
Unique column identifier
depth
number
Nesting depth (0 for top-level)
columnDef
ColumnDef
The original column definition
columns
Column[]
Child columns (for group columns)
parent
Column | undefined
Parent column (if nested)
accessorFn
(row, index) => TValue
Value accessor function
Traversal
Method
Return
Description
getFlatColumns()
Column[]
This column + all nested flat columns
getLeafColumns()
Column[]
Leaf columns in this column's tree
Sizing
Method
Return
Description
getSize()
number
Current width in px
getStart(position?)
number
Start offset in px
getAfter(position?)
number
Remaining space after this column
getCanResize()
boolean
Can this column be resized?
getIsResizing()
boolean
Is this column currently being resized?
resetSize()
void
Reset to default size
The configured width comes from state.columnSizing[columnId], then
columnDef.size, then the default size. minSize and maxSize are enforced
during drag resizing.