@jsvision/datagrid / cellKey
Function: cellKey()
cellKey(
rowKey,columnId):string
Defined in: datagrid/src/editing.ts:53
A stable cell key joining the row key and column id with a NUL byte. The separator cannot occur in a realistic row key or column id, so distinct cells never collide and a rowKey-plus-separator prefix cleanly matches every cell in one row.
Parameters
rowKey
string | number
The row's stable key.
columnId
string
The column id.
Returns
string
The joined key (rowKey, a NUL byte, then columnId).
Example
ts
import { cellKey } from '@jsvision/datagrid';
const k = cellKey(42, 'name'); // the row key, a NUL byte, then the column id