Table of Contents

Method UseDndMonitor

Namespace
Velvet
Assembly
Velvet.Docs.dll

UseDndMonitor(DndMonitorListener)

Registers listener with the nearest V.DndContext while the component is mounted — dnd-kit's useDndMonitor. Each callback runs after the context's own callback of the same name; the one a render passes is the one called, without registering again.

public static void UseDndMonitor(DndMonitorListener listener)

Parameters

listener DndMonitorListener

The callbacks to run. Must not be null.

Exceptions

InvalidOperationException

No V.DndContext is above the component.