diff options
author | Pekka Hyvönen <pekka@vaadin.com> | 2017-05-18 14:11:03 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-18 14:11:03 +0300 |
commit | 88429109c2f8e77fb3a9ef7b5ab51d51e7dcaa58 (patch) | |
tree | c2743e0febb57817f7137cbbe7a1e896e277ef23 /shared/src | |
parent | 548650bfe02f6e2582f06cecee2333099d951718 (diff) | |
download | vaadin-framework-88429109c2f8e77fb3a9ef7b5ab51d51e7dcaa58.tar.gz vaadin-framework-88429109c2f8e77fb3a9ef7b5ab51d51e7dcaa58.zip |
Show drop hints when dropping in empty Grid (#9353)
Also makes sure that the drop location and target row return something sensible in drop event.
Clarifies docs on drop location.
Diffstat (limited to 'shared/src')
-rw-r--r-- | shared/src/main/java/com/vaadin/shared/ui/grid/DropLocation.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/shared/src/main/java/com/vaadin/shared/ui/grid/DropLocation.java b/shared/src/main/java/com/vaadin/shared/ui/grid/DropLocation.java index 0bd124f983..3e031e6c98 100644 --- a/shared/src/main/java/com/vaadin/shared/ui/grid/DropLocation.java +++ b/shared/src/main/java/com/vaadin/shared/ui/grid/DropLocation.java @@ -36,5 +36,11 @@ public enum DropLocation { /** * Drop below or after the row. */ - BELOW + BELOW, + + /** + * Dropping into an empty grid, or to the empty area below the grid rows + * when {@link DropMode#ON_TOP} is used. + */ + EMPTY; } |