Skip to main content

Home > @jsplumbtoolkit/browser-ui > BeforeDragInterceptor

BeforeDragInterceptor type

Defines the method signature for the callback to the beforeDrag interceptor. This method can return boolean false to abort the connection drag, or it can return an object containing values that will be used as the data for the connection that is created.


export declare type BeforeDragInterceptor<E = any> = (params: BeforeDragParams<E>) => boolean | Record<string, any>;

References: BeforeDragParams