fx-droptarget
only applies when using Drag and Drop is used and acts as
a sink for HTML draggable elements. fx-droptarget
can and often will be a draggable element
itself.
To enable Drag and Drop operation add the draggable
attribute to the respective elements and add as many
fx-droptarget
elements as needed.
Drag and Drop can be used in a lot of different scenarios. The current implementation offers:
fx-droptarget
Name | Description | Default |
---|---|---|
accept | CSS selector matching elements that are accepted | * |
drop-action | one of ‘copy’ or ‘move’ | move |
Selector | Description |
---|---|
.drag-over | applied whenever a draggable is dragged over the fx-droptarget |
.no-drop | applied whenever a draggable is dragged over the fx-droptarget but drop is not allowed |
none