Skip to main content

Cell_Core

还没翻译译自英文(tanstack.com)本页 49 段都还没译

Defined in: types/Cell.ts:9

Extends

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

TValue

TValue extends CellData = CellData

Properties

column

column: Column<TFeatures, TData, TValue>;

Defined in: core/cells/coreCellsFeature.types.ts:29

The associated Column object for the cell.

Inherited from

Cell_Cell.column


getContext

getContext: () => CellContext<TFeatures, TData, TValue>;

Defined in: core/cells/coreCellsFeature.types.ts:52

Returns the rendering context (or props) for cell-based components like cells and aggregated cells. Use these props with your framework's flexRender utility to render these using the template of your choice:

Returns

CellContext<TFeatures, TData, TValue>

Inherited from

Cell_Cell.getContext


getValue

getValue: Getter<TValue>;

Defined in: core/cells/coreCellsFeature.types.ts:56

Returns the value for the cell, accessed via the associated column's accessor key or accessor function.

Inherited from

Cell_Cell.getValue


id

id: string;

Defined in: core/cells/coreCellsFeature.types.ts:33

The unique ID for the cell across the entire table.

Inherited from

Cell_Cell.id


renderValue

renderValue: Getter<TValue | null>;

Defined in: core/cells/coreCellsFeature.types.ts:60

Renders the value for a cell the same as getValue, but will return the renderFallbackValue if no value is found.

Inherited from

Cell_Cell.renderValue


row

row: Row<TFeatures, TData>;

Defined in: core/cells/coreCellsFeature.types.ts:37

The associated Row object for the cell.

Inherited from

Cell_Cell.row


table

table: Table_Internal<TFeatures, TData>;

Defined in: core/cells/coreCellsFeature.types.ts:41

Reference to the parent table instance.

Inherited from

Cell_Cell.table