(state: TableState<T>, columnKey: Key)
| 27 | } |
| 28 | |
| 29 | export 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 | |
| 38 | export function getCellId<T>(state: TableState<T>, rowKey: Key, columnKey: Key): string { |
| 39 | let gridId = gridIds.get(state); |
no test coverage detected