Interface DndUtil.DndJs
- All Superinterfaces:
Serializable
- Enclosing class:
DndUtil
What drag and drop asks of its client-side connector, as a JavaScript
definition for
Element.executeJs(Class).
For internal use only. May be renamed or removed in a future release.
- Since:
- 25.4
-
Method Summary
Modifier and TypeMethodDescriptionvoidsetDragImage(Component dragImage, int offsetX, int offsetY) Sets the image shown while the element is dragged.voidActivates the element as a drag source, or deactivates it when it is no longer draggable.voidActivates the element as a drop target, or deactivates it when it no longer accepts a drop.
-
Method Details
-
updateDragSource
Activates the element as a drag source, or deactivates it when it is no longer draggable. -
updateDropTarget
Activates the element as a drop target, or deactivates it when it no longer accepts a drop. -
setDragImage
@JsExpression("window.Vaadin.Flow.dndConnector.setDragImage($0, $1, $2, this)") void setDragImage(Component dragImage, int offsetX, int offsetY) Sets the image shown while the element is dragged.- Parameters:
dragImage- the component to show, ornullfor the image the browser makes of the dragged elementoffsetX- where the pointer is in the image, horizontallyoffsetY- where the pointer is in the image, vertically
-