Cell
Cell objects are instances representing individual table cells. They are generated by the table and contain references to their associated row, column, and the cell's data value. Cells are used for rendering the <tbody> section of the table. See the Cells guide for usage examples.
API
Properties and methods for cell objects. Includes row and column references, cell value accessors, rendering context, and cell identifier information.
| Prop | Type |
|---|---|
The associated Column object for the cell. | Column< |
Returns the rendering context for cell-based components like cells and
aggregated cells. | () => { |
Returns whether the cell is currently aggregated. | () => boolean |
Returns whether the cell is currently grouped. | () => boolean |
Returns whether the cell is currently a placeholder cell. | () => boolean |
Returns the value for the cell, accessed via the associated column's accessor
key or accessor function. | () => [ |
The unique ID for the cell across the entire table. | string |
The associated Row object for the cell. | Row<TData> |
Type
Column<
TData,
TValue,
TColumnMeta
>
Description
The associated Column object for the cell.
Type
() => {
cell: Cell<
TData,
TValue,
TColumnMeta
>
column: Column<
TData,
TValue,
TColumnMeta
>
getValue: () => TValue
row: Row<TData>
table: TableInstance<TData>
}
Description
Returns the rendering context for cell-based components like cells and
aggregated cells.
Type
() => boolean
Description
Returns whether the cell is currently aggregated.
Type
() => boolean
Description
Returns whether the cell is currently grouped.
Type
() => boolean
Description
Returns whether the cell is currently a placeholder cell.
Type
() => [
T,
][T extends any ? 0 : never]
Description
Returns the value for the cell, accessed via the associated column's accessor
key or accessor function.
Type
stringDescription
The unique ID for the cell across the entire table.
Type
Row<TData>
Description
The associated Row object for the cell.