MCPcopy Index your code
hub / github.com/adobe/react-spectrum / getRowLabelledBy

Function getRowLabelledBy

packages/react-aria/src/table/utils.ts:47–52  ·  view source on GitHub ↗
(state: TableState<T>, rowKey: Key)

Source from the content-addressed store, hash-verified

45}
46
47export function getRowLabelledBy<T>(state: TableState<T>, rowKey: Key): string {
48 // A row is labelled by it's row headers.
49 return [...state.collection.rowHeaderColumnKeys]
50 .map(columnKey => getCellId(state, rowKey, columnKey))
51 .join(' ');
52}

Callers 2

useTableRowFunction · 0.90

Calls 1

getCellIdFunction · 0.85

Tested by

no test coverage detected