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​
| Parameter | Type | Description |
|---|---|---|
cell | Computed<CellRecord> | the resolved cell record |
Returns​
string | null
Example​
import { useCell, selectCellLayer } from '@joint/react';
const layer = useCell(cellId, selectCellLayer);