documentationfor yFiles for HTML 2.6

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 dragged item to the new node.

It can visualize a preview of the dragged item 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-editor
yfiles-umd modules
view-editor, view-table, view
Legacy UMD name
yfiles.input.NodeDropInputMode

See Also

Constructors

Properties

Methods

Events

Static Methods