Type Alias BeforeStartConnectInterceptor

BeforeStartConnectInterceptor: ((source: Vertex, type: string) => boolean | Record<string, any>)

A function to run before an edge of the given type is dragged from the given source. Returning false from this method will abort the connection.

Type declaration

    • (source, type): boolean | Record<string, any>
    • Parameters

      Returns boolean | Record<string, any>

      If you return boolean false from this method the connection is aborted. If you return an object from this method it will be used as the initial data for the resulting edge.

Version :