diff options
author | Adam Wagner <wbadam@users.noreply.github.com> | 2017-04-25 14:05:37 +0300 |
---|---|---|
committer | Henri Sara <henri.sara@gmail.com> | 2017-04-25 14:05:37 +0300 |
commit | d0a8608c7e074d4baeef0282146b2da5c47603a5 (patch) | |
tree | d8188d37aba955a8d7c1272d48b324515a567ba2 /shared | |
parent | bb46fff4376095fb52443973577767026807a7ea (diff) | |
download | vaadin-framework-d0a8608c7e074d4baeef0282146b2da5c47603a5.tar.gz vaadin-framework-d0a8608c7e074d4baeef0282146b2da5c47603a5.zip |
Make it possible to set a Resource as drag image (#9088)
Fixes #8892
Note that IE and Edge are not covered by this change - see #8977
Diffstat (limited to 'shared')
-rw-r--r-- | shared/src/main/java/com/vaadin/shared/ui/dnd/DragSourceState.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shared/src/main/java/com/vaadin/shared/ui/dnd/DragSourceState.java b/shared/src/main/java/com/vaadin/shared/ui/dnd/DragSourceState.java index 766c79e3eb..2ac5c4e438 100644 --- a/shared/src/main/java/com/vaadin/shared/ui/dnd/DragSourceState.java +++ b/shared/src/main/java/com/vaadin/shared/ui/dnd/DragSourceState.java @@ -40,6 +40,8 @@ public class DragSourceState extends SharedState { */ public static final String DATA_TYPE_TEXT = "text"; + public static final String RESOURCE_DRAG_IMAGE = "drag-image"; + /** * {@code DataTransfer.effectAllowed} parameter for the drag event. */ |