documentationfor yFiles for HTML 3.0.0.3

NodeDropInputMode

An ItemDropInputMode<T> specialized to the drag and drop of INodes.

Inheritance Hierarchy
Implemented Interfaces

Remarks

By default, this input mode copies the layout, style, tag, ports, and labels of the draggedItem to the new node.

It can visualize a preview of the draggedItem during the drag operation, and supports snapping via the snapContext and highlighting of the dropTarget via a HighlightIndicatorManager<T>. In addition, it supports dragging nodes into groups and, optionally, folders. In this case the isValidParentPredicate will be queried if the dropped upon node is actually a valid parent.

Examples

Typically the NodeDropInputMode is installed as child mode of a GraphEditorInputMode and can be retrieved from the nodeDropInputMode property.
Getting the NodeDropInputMode from its parent input mode
const nodeDropInputMode = mode.nodeDropInputMode

Type Details

yFiles module
view

Constructors

Properties

Methods

Events

Constants

Static Methods