Table of Contents

Method DragOverlay

Namespace
Velvet
Assembly
Velvet.Docs.dll

DragOverlay(VNode?[]?, string?)

Portal-rendered drag preview. Expands to V.Portal(UILayer.Overlay) hosting a framework-positioned, picking-ignored positioner that is sized to the drag source at activation and tracks the pointer while a drag is active (hidden otherwise). Render preview content conditionally from state set in onDragStart/onDragEnd. Inherits V.Portal(layer:)'s editor-context degradation.

public static PortalNode DragOverlay(VNode?[]? children = null, string? key = null)

Parameters

children VNode[]

The preview content.

key string

Key used to disambiguate siblings at the same position.

Returns

PortalNode

The created PortalNode.