(state: TableState<T>, rowKey: Key, columnKey: Key)
| 36 | } |
| 37 | |
| 38 | export 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 | |
| 47 | export function getRowLabelledBy<T>(state: TableState<T>, rowKey: Key): string { |
| 48 | // A row is labelled by it's row headers. |
no test coverage detected