selectCellId()
function selectCellId(cell): string | number;
Selects a cell's id. Prefer useCellId when the id is all you need — it skips the selector machinery.
Parameters
| Parameter | Type | Description |
|---|---|---|
cell | Computed<CellRecord> | the resolved cell record |
Returns
string | number
Example
import { useCell, selectCellId } from '@joint/react';
const id = useCell(cellId, selectCellId);