Skip to main content

row_getVisibleCellsByColumnId

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

function row_getVisibleCellsByColumnId<TFeatures, TData>(row): Record<string, Cell<TFeatures, TData, unknown>>;

Defined in: features/column-visibility/columnVisibilityFeature.utils.ts:196

Builds a lookup map of this row's visible cells keyed by column id.

Hidden columns are omitted from the map.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

row

Row<TFeatures, TData>

Returns

Record<string, Cell<TFeatures, TData, unknown>>

Example

const visibleCellsById = row_getVisibleCellsByColumnId(row)