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

Function getColumnHeaderId

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

Source from the content-addressed store, hash-verified

27}
28
29export function getColumnHeaderId<T>(state: TableState<T>, columnKey: Key): string {
30 let gridId = gridIds.get(state);
31 if (!gridId) {
32 throw new Error('Unknown grid');
33 }
34
35 return `${gridId}-${normalizeKey(columnKey)}`;
36}
37
38export function getCellId<T>(state: TableState<T>, rowKey: Key, columnKey: Key): string {
39 let gridId = gridIds.get(state);

Callers 2

useTableColumnResizeFunction · 0.90
useTableColumnHeaderFunction · 0.90

Calls 1

normalizeKeyFunction · 0.70

Tested by

no test coverage detected