Configures the specified element as a valid drop container for dragged items.
Parameter | Type | Description |
---|---|---|
element | String | DOM element to be made a drop container for dragged items |
dropClient | Object | An object with additional drop container properties |
dropClient object properties:
Property | Type | Description |
---|---|---|
dragEnter | Function | Function called the moment an item enters the space occupied by this container. Passed the DOM element being dragged. |
dragHover | Function | Function called when an item moves over this container. Passed the DOM element being dragged. |
dragLeave | Function | Function called the moment an item leaves the space occupied by this container. Passed the DOM element being dragged. |
dragDrop | Function | Function called when an item is dropped on this container. Passed the DOM element being dragged and the Boolean value newItem indicating whether the item came from a different container. |
dragRemove | Function | Function called when an item in this container is dropped on a different container. |
dragDatatype | String | Only draggers with a matching datatype can be enter or be dropped on this container. Optional |
0 Comments