Skip to main content

Interface: DropOnCanvasProps

Defined in: widgets/dropOnCanvas.tsx:26

Props for DropOnCanvas component.

See

DropOnCanvas

Properties

PropertyTypeDescription

allowDrop?

(e) => boolean

Handler to check whether the drop is allowed.

If not specified, all drag events are allowed.

getDroppedItems?

(e) => readonly DropItemElement[]

Handler to make diagram elements from drop event to add on the canvas.

Default: defaultGetDroppedOnCanvasItems