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).
dia.Cell
portalSelector
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';} Copy
import type { PortalHostCell } from '@joint/react';class MyShape extends dia.Element implements PortalHostCell { portalSelector = 'root';}
Optional
Readonly
Selector of the node inside the cell view where React content mounts.
Optional shape that a
dia.Cellsubclass can implement to opt into joint-react's portal rendering. Cells without aportalSelectorare skipped by default (unless a paper-level override is supplied).ElementModel and LinkModel satisfy this structurally; custom cell classes can too: