Skip to main content
Version: 4.3

selectCellLayer()

function selectCellLayer(cell): string | null;

Selects the name of the paper layer the cell renders into, or null when it sits on the paper's default layer.

Parameters​

ParameterTypeDescription
cellComputed<CellRecord>the resolved cell record

Returns​

string | null

Example​

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

const layer = useCell(cellId, selectCellLayer);

Stay in the know

Be where thousands of diagramming enthusiasts meet

Star us on GitHub