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

Function getCellId

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

Source from the content-addressed store, hash-verified

36}
37
38export function getCellId<T>(state: TableState<T>, rowKey: Key, columnKey: Key): string {
39 let gridId = gridIds.get(state);
40 if (!gridId) {
41 throw new Error('Unknown grid');
42 }
43
44 return `${gridId}-${normalizeKey(rowKey)}-${normalizeKey(columnKey)}`;
45}
46
47export function getRowLabelledBy<T>(state: TableState<T>, rowKey: Key): string {
48 // A row is labelled by it's row headers.

Callers 2

useTableCellFunction · 0.90
getRowLabelledByFunction · 0.85

Calls 1

normalizeKeyFunction · 0.70

Tested by

no test coverage detected