Skip to main content

Home > @jsplumbtoolkit/drop > DropManagerOptions

DropManagerOptions interface#

Signature:

export interface DropManagerOptions<T> 

Properties#

PropertyTypeDescription
canvasDropFilter?CanvasDropFilter<T>(Optional)
canvasSelector?string(Optional)
dataGeneratorDataGeneratorFunction<T>
dragActiveClass?string(Optional)
dragHoverClass?string(Optional)
dropFilter?DropFilter<T>(Optional)
edgeDropFilter?EdgeDropFilter<T>(Optional)
elementGenerator?(el: Element) => Element(Optional)
enabled?boolean(Optional)
ignoreConstrainFunction?boolean(Optional) If true, the manager will ignore any element constrain function that may be set on the surface
ignoreGrid?boolean(Optional)
ignoreZoom?boolean(Optional) By default, the DropManager will apply a scale transform to elements that are being dragged so that they appear at the same size as the Surface they're being dragged to. Setting this flag to true will switch off that behaviour.
onCanvasDrop?CanvasDropFunction<T>(Optional)
onDrag?DragFunction<T>(Optional)
onDrop?DropFunction<T>(Optional)
onEdgeDrop?EdgeDropFunction<T>(Optional)
scope?string(Optional)
selectorstringA selector that identifies the draggable elements inside source.
sourceElementThe element that contains draggable elements.
surfaceSurfaceThe Surface to attach to. Required.