docs

Drag-and-Drop Configuration

To use drag and drop, you have to provide the required configuration using the dragDropConfig aggregation in sap.ui.core.Element.


Overview

The dragDropConfig aggregation with multiplicity 0..n is enabled for all controls and elements in OpenUI5. However, it has to be defined in the metadata first.

Note:

This configuration might be ignored due to metadata restrictions of sap.ui.core.Element.extend. For more information, see the API Reference: sap.ui.core.Element.extend.

To enable configuration, the following configuration entities for the aggregation are available:

Both DragInfo and DropInfo provide the groupName property. If this property has been specified, the DropInfo object only interacts with the relevant DragInfo classes within the same group.

Related Information

API Reference: dragDropConfig

Drag-and-Drop Metadata