Skip to main content
Version: 4.3

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

ParameterTypeDescription
cellComputed<CellRecord>the resolved cell record

Returns

string | number

Example

import { useCell, selectCellId } from '@joint/react';

const id = useCell(cellId, selectCellId);

Stay in the know

Be where thousands of diagramming enthusiasts meet

Star us on GitHub