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.

Cell<
TData extends unknown,
TValue = unknown,
TColumnMeta = ColumnMeta,
>
PropType
The associated Column object for the cell.
Column<
TData,
TValue,
TColumnMeta
>
Returns the rendering context for cell-based components like cells and aggregated cells.
      () => CellContext<
      TData,
      TValue
      >
      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.
              () => [
              TTValue,
              ][TTValue extends any
              ? 0
              : never]
              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
              () => CellContext<
              TData,
              TValue
              >
              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
                        () => [
                        TTValue,
                        ][TTValue extends any
                        ? 0
                        : never]
                        Description
                        Returns the value for the cell, accessed via the associated column's accessor key or accessor function.
                          Type
                          string
                          Description
                          The unique ID for the cell across the entire table.
                          Type
                          Row<TData>
                          Description
                          The associated Row object for the cell.
                          Updated by Ryan Bower
                          On this page