IDragAndDropOptions<T>
Defined in: ui.ts:749
Options for makeDroppable. All callbacks are optional; pass only what you need.
Type Parameters
| Type Parameter | Default type |
|---|---|
T | any |
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
acceptDrag? | (args) => boolean | Predicate called with the full DragDropArgs — veto by returning false or setting args.handled = true. | ui.ts:753 |
acceptDrop? | (dragObject) => boolean | Fast predicate used to decide whether to show a drop zone for dragObject. | ui.ts:751 |
doDrop? | (args) => void | Handles the drop. Read args.dragObject, args.copying, args.link, etc. | ui.ts:755 |
dropIndication? | boolean | When false, suppresses the default d4-drop-zone element. Defaults to true. | ui.ts:773 |
dropSuggestion? | string | Text shown inside the default drop zone. | ui.ts:771 |
dropZoneRectTransformation? | (r) => Rect | Transforms the default rectangle used to position the drop zone over the host. | ui.ts:769 |
getDropElement? | () => Element | Returns the element that should receive the d4-drop class during the drag. | ui.ts:765 |
makeDropZone? | () => Element | Returns a custom drop-zone element, replacing the default .d4-drop-zone. | ui.ts:767 |
onBeginDrag? | (args) => void | Fires when a drag session starts and this zone is eligible. | ui.ts:757 |
onEndDrag? | (args) => void | Fires when a drag session ends (whether it landed here or not). | ui.ts:759 |
onMouseEnter? | (e, args) => void | - | ui.ts:760 |
onMouseLeave? | (e, args) => void | - | ui.ts:762 |
onMouseOut? | (e, args) => void | - | ui.ts:763 |
onMouseOver? | (e, args) => void | - | ui.ts:761 |