PortalHostCell
Optional shape that a dia.Cell subclass can implement to opt into
joint-react's portal rendering. Cells without a portalSelector are
skipped by default (unless a paper-level override is supplied).
ElementModel and LinkModel satisfy this structurally; custom cell classes can too:
import type { PortalHostCell } from '@joint/react';
class MyShape extends dia.Element implements PortalHostCell {
portalSelector = 'root';
}
Properties
portalSelector?
readonly optional portalSelector?: string;
Selector of the node inside the cell view where React content mounts.