Type alias BeforeConnectInterceptor

BeforeConnectInterceptor: ((source, target, data?, userInstigated?) => any)

Definition of a function to use as a beforeConnect interceptor.

Type declaration

    • (source, target, data?, userInstigated?): any
    • Parameters

      • source: Vertex

        The source vertex for the new edge

      • target: Vertex

        The target vertex for the new edge

      • Optional data: Record<string, any>

        optional initial data for the edge, which would have

      • Optional userInstigated: boolean

        If true, the new edge came from user activity, with a pointer device or touch input. This will be false whenever the edge is added programmatically, either during a data load or via the addEdge method of the Toolkit.

      Returns any