Skip to main content
Version: 4.3

CellInput

type CellInput<Element, Link> = Element | Link | DiaCell;

What you may pass when handing a cell to the library: either a plain element or link record, or a live dia.Cell instance. Accepted by every cell-mutation entry point — initialCells, resetCells, and the cell setters.

Type Parameters

Type ParameterDefault typeDescription
Element extends ElementJSONInitElementJSONInitelement record shape
Link extends LinkJSONInitLinkJSONInitlink record shape

Stay in the know

Be where thousands of diagramming enthusiasts meet

Star us on GitHub