effectAllowed property

String get effectAllowed

The DataTransfer.effectAllowed property specifies the effect that is allowed for a drag operation. The copy operation is used to indicate that the data being dragged will be copied from its present location to the drop location. The move operation is used to indicate that the data being dragged will be moved, and the link operation is used to indicate that some form of relationship or connection will be created between the source and drop locations.

This property should be set in the HTMLElement.dragstart_event event to set the desired drag effect for the drag source. Within the HTMLElement.dragenter_event and HTMLElement.dragover_event event handlers, this property will be set to whatever value was assigned during the HTMLElement.dragstart_event event, thus effectAllowed may be used to determine which effect is permitted.

Assigning a value to effectAllowed in events other than HTMLElement.dragstart_event has no effect.

Implementation

external String get effectAllowed;
set effectAllowed (String value)

Implementation

external set effectAllowed(String value);