Home > @jsplumbtoolkit/browser-ui > DropManagerOptions
DropManagerOptions interface
Options for the DropManager.
Signature:
export interface DropManagerOptions<T>
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
canvasDropFilter? | CanvasDropFilter<T> | (Optional) | |
canvasSelector? | string | (Optional) | |
dataGenerator | DataGeneratorFunction<T> | ||
dragActiveClass? | string | (Optional) | |
dragElementClass? | string | (Optional) | |
dragHoverClass? | string | (Optional) | |
dragSize? | Size | (Optional) Optional dimensions to use for elements being dragged. | |
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) | |
selector | string | A selector that identifies the draggable elements inside source . | |
source | Element | The element that contains draggable elements. | |
surface | Surface | The Surface to attach to. Required. |