From ce3efd94b34c77ce470af291c501d679e2872cdd Mon Sep 17 00:00:00 2001 From: Pekka Hyvönen Date: Thu, 16 Nov 2017 14:05:12 +0200 Subject: Add documentation on GridDragger (#10328) This pathc also switches GridDragger to by default not allow drops on rows when the grid has been sorted. --- shared/src/main/java/com/vaadin/shared/ui/grid/DropMode.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'shared/src') diff --git a/shared/src/main/java/com/vaadin/shared/ui/grid/DropMode.java b/shared/src/main/java/com/vaadin/shared/ui/grid/DropMode.java index 1dbafbcbc0..927cbb7516 100644 --- a/shared/src/main/java/com/vaadin/shared/ui/grid/DropMode.java +++ b/shared/src/main/java/com/vaadin/shared/ui/grid/DropMode.java @@ -55,6 +55,9 @@ public enum DropMode { * event will not contain any target row information. This is the drop * target used when the grid is completely empty. It can also be configured * to be used automatically when the user has sorted the grid. + *

+ * When this mode is used, it also recommended to automatically scroll the + * dropped data (new rows) to be visible for the user. * * @since 8.2 */ -- cgit v1.2.3