本页还没有译文
本页 27 段还没译成简体中文,下面显示的是英文原文。cell_getContext
还没翻译译自英文(tanstack.com)本页 27 段都还没译
function cell_getContext<TFeatures, TData, TValue>(cell): object;Defined in: core/cells/coreCellsFeature.utils.ts:54
Builds the render context passed to a column's cell template.
The returned object includes stable references to the table, row, column, and
cell, plus bound getValue and renderValue helpers for render functions.
Type Parameters
TFeatures
TFeatures extends TableFeatures
TData
TData extends RowData
TValue
TValue extends unknown = unknown
Parameters
cell
Cell<TFeatures, TData, TValue>
Returns
object
cell
cell: Cell<TFeatures, TData, TValue>;column
column: Column<TFeatures, TData, TValue> = cell.column;getValue
getValue: () => NoInfer<TValue>;Returns
NoInfer<TValue>
renderValue
renderValue: () => NoInfer<TValue | null>;Returns
NoInfer<TValue | null>
row
row: Row<TFeatures, TData> = cell.row;table
table: Table_Internal<TFeatures, TData> = cell.table;Example
const context = cell_getContext(cell)AI 翻译查看英文原文