diff options
-rw-r--r-- | documentation/advanced/advanced-dragndrop.asciidoc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/documentation/advanced/advanced-dragndrop.asciidoc b/documentation/advanced/advanced-dragndrop.asciidoc index 7ccd1c7bae..4aaa0586d0 100644 --- a/documentation/advanced/advanced-dragndrop.asciidoc +++ b/documentation/advanced/advanced-dragndrop.asciidoc @@ -51,7 +51,7 @@ The [classname]#DragStartEvent# is fired when the drag has started, and the [cla [source, java] ---- dragSource.addDragStartListener(event -> - Notification.show("Drag event started"); + Notification.show("Drag event started") ); dragSource.addDragEndListener(event -> { if (event.isCanceled()) { @@ -69,11 +69,11 @@ It is possible to transfer any Object as server side data to the drop target if [source, java] ---- dragSource.addDragStartListener(event -> - dragSource.setDragData(myObject); + dragSource.setDragData(myObject) ); dragSource.addDragEndListener(event -> - dragSource.setDragData(null); -}; + dragSource.setDragData(null) +); ---- === CSS Style Rules |