Ir al contenido

DiagramProps

Defined in: react/index.tsx:24

optional className?: string

Defined in: react/index.tsx:43


optional groupTemplate?: Panel | null

Defined in: react/index.tsx:32

GoJS-compatible: the group template.


optional initDiagram?: (diagram) => void

Defined in: react/index.tsx:34

Called once the underlying diagram is created.

Diagram

void


optional linkTemplate?: Panel | null

Defined in: react/index.tsx:30

GoJS-compatible: the link template.


optional model?: GraphLinksModel

Defined in: react/index.tsx:26

GoJS-compatible: the model to display. Re-renders when it changes.


optional nodeTemplate?: Panel | null

Defined in: react/index.tsx:28

GoJS-compatible: the node template.


optional onDiagramEvent?: (type, event) => void

Defined in: react/index.tsx:40

Called for every fired diagram event of the given type.

DiagramEventType

DiagramEvent

void


optional onDiagramInit?: (diagram) => void

Defined in: react/index.tsx:36

Called after initDiagram with the diagram instance.

Diagram

void


optional onModelChange?: (event) => void

Defined in: react/index.tsx:38

GoJS-compatible: called whenever the diagram’s model changes.

ChangedEvent

void


optional onSelectionChanged?: (diagram) => void

Defined in: react/index.tsx:42

Sugar for the “SelectionChanged” diagram event.

Diagram

void


optional style?: CSSProperties

Defined in: react/index.tsx:44