Interface ReactSurfaceViewOptions

Options for the view in the react surface component. Maps node/group/port/edge types to JSX and behaviour.

interface ReactSurfaceViewOptions {
    edges?: ViewOptionsEntry<ViewEdgeOptions>;
    groups?: ViewOptionsEntry<ReactViewGroupOptions>;
    nodes?: ViewOptionsEntry<ReactViewNodeOptions>;
    ports?: ViewOptionsEntry<ReactViewPortOptions>;
}

Properties

edges?: ViewOptionsEntry<ViewEdgeOptions>

Optional edge mappings.

groups?: ViewOptionsEntry<ReactViewGroupOptions>

Optional group mappings

nodes?: ViewOptionsEntry<ReactViewNodeOptions>

Optional node mappings

ports?: ViewOptionsEntry<ReactViewPortOptions>

Optional port mappings. Because of the nature of JSX, separate port mappings are a little rare in JsPlumb React, but they are supported if you need them.

Version :