Skip to main content

Home > @jsplumb/core > BeforeDetachInterceptor

BeforeDetachInterceptor type#

Defines the method signature for the callback to the beforeDetach interceptor. Returning false from this method prevents the connection from being detached. The interceptor is fired by the core, meaning that it will be invoked regardless of whether the detach occurred programmatically, or via the mouse.

Signature:

export declare type BeforeDetachInterceptor = (c: Connection) => boolean;

References: Connection