Selects the id of the cell this one is embedded in, or null for a top-level cell. Works for elements and links alike, since any cell can be embedded.
null
the resolved cell record
import { useCell, selectCellParent } from '@joint/react';const parentId = useCell(cellId, selectCellParent); Copy
import { useCell, selectCellParent } from '@joint/react';const parentId = useCell(cellId, selectCellParent);
Selects the id of the cell this one is embedded in, or
nullfor a top-level cell. Works for elements and links alike, since any cell can be embedded.