本页还没有译文
本页 134 段还没译成简体中文,下面显示的是英文原文。Row_Row
还没翻译译自英文(tanstack.com)本页 134 段都还没译
Defined in: core/rows/coreRowsFeature.types.ts:62
Extends
Row_CoreProperties<TFeatures,TData>
Extended by
Type Parameters
TFeatures
TFeatures extends TableFeatures
TData
TData extends RowData
Properties
_cellsCache?
optional _cellsCache?: WeakMap<Column<TFeatures, TData, unknown>, Cell<TFeatures, TData, unknown>>;Defined in: core/rows/coreRowsFeature.types.ts:12
Inherited from
Row_CoreProperties._cellsCache
_displayIndexCache
_displayIndexCache: number;Defined in: core/rows/coreRowsFeature.types.ts:25
Internal
Internal cache used while resolving the current display order.
This value may be stale until display order is recomputed. Use
row.getDisplayIndex() instead; it refreshes and validates the cached
position before returning it.
Inherited from
Row_CoreProperties._displayIndexCache
_uniqueValuesCache
_uniqueValuesCache: Record<string, unknown>;Defined in: core/rows/coreRowsFeature.types.ts:26
Inherited from
Row_CoreProperties._uniqueValuesCache
_valuesCache
_valuesCache: Record<string, unknown>;Defined in: core/rows/coreRowsFeature.types.ts:27
Inherited from
Row_CoreProperties._valuesCache
depth
depth: number;Defined in: core/rows/coreRowsFeature.types.ts:31
The depth of the row (if nested or grouped) relative to the root row array.
Inherited from
getAllCells
getAllCells: () => Cell<TFeatures, TData, unknown>[];Defined in: core/rows/coreRowsFeature.types.ts:80
Builds one cell for each leaf column, including cells for hidden columns.
Returns
Cell<TFeatures, TData, unknown>[]
getAllCellsByColumnId
getAllCellsByColumnId: () => Record<string, Cell<TFeatures, TData, unknown>>;Defined in: core/rows/coreRowsFeature.types.ts:76
Builds a lookup of this row's cells keyed by leaf column id.
Returns
Record<string, Cell<TFeatures, TData, unknown>>
getDisplayIndex
getDisplayIndex: () => number;Defined in: core/rows/coreRowsFeature.types.ts:72
Returns the zero-based index of the row in the current display order
before pagination, or -1 if the row is not in that model. Use this for
display row-number columns instead of row.index or the internal
_displayIndexCache field.
Returns
number
getLeafRows
getLeafRows: () => Row<TFeatures, TData>[];Defined in: core/rows/coreRowsFeature.types.ts:84
Returns the leaf rows for the row, not including any parent rows.
Returns
Row<TFeatures, TData>[]
getParentRow
getParentRow: () => Row<TFeatures, TData> | undefined;Defined in: core/rows/coreRowsFeature.types.ts:88
Returns the parent row for the row, if it exists.
Returns
Row<TFeatures, TData> | undefined
getParentRows
getParentRows: () => Row<TFeatures, TData>[];Defined in: core/rows/coreRowsFeature.types.ts:92
Returns the parent rows for the row, all the way up to a root row.
Returns
Row<TFeatures, TData>[]
getUniqueValues
getUniqueValues: <TValue>(columnId) => TValue[];Defined in: core/rows/coreRowsFeature.types.ts:96
Reads the values this row contributes to faceting/grouping for a column.
Type Parameters
TValue
TValue
Parameters
columnId
string
Returns
TValue[]
getValue
getValue: <TValue>(columnId) => TValue;Defined in: core/rows/coreRowsFeature.types.ts:100
Reads this row's accessor value for a column id and caches the result.
Type Parameters
TValue
TValue
Parameters
columnId
string
Returns
TValue
id
id: string;Defined in: core/rows/coreRowsFeature.types.ts:35
The resolved unique identifier for the row resolved via the options.getRowId option. Defaults to the row's index (or relative index if it is a subRow).
Inherited from
index
index: number;Defined in: core/rows/coreRowsFeature.types.ts:39
The index of the row within its parent array (or the root data array).
Inherited from
original
original: TData;Defined in: core/rows/coreRowsFeature.types.ts:43
The original row object provided to the table. If the row is a grouped row, the original row object will be the first original in the group.
Inherited from
originalSubRows?
optional originalSubRows?: readonly TData[];Defined in: core/rows/coreRowsFeature.types.ts:47
An array of the original subRows as returned by the options.getSubRows option.
Inherited from
Row_CoreProperties.originalSubRows
parentId?
optional parentId?: string;Defined in: core/rows/coreRowsFeature.types.ts:51
If nested, this row's parent row id.
Inherited from
renderValue
renderValue: <TValue>(columnId) => TValue;Defined in: core/rows/coreRowsFeature.types.ts:104
Renders the value for the row in a given columnId the same as getValue, but will return the renderFallbackValue if no value is found.
Type Parameters
TValue
TValue
Parameters
columnId
string
Returns
TValue
subRows
subRows: Row<TFeatures, TData>[];Defined in: core/rows/coreRowsFeature.types.ts:55
An array of subRows for the row as returned and created by the options.getSubRows option.
Inherited from
table
table: Table_Internal<TFeatures, TData>;Defined in: core/rows/coreRowsFeature.types.ts:59
Reference to the parent table instance.