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
listenerDndMonitorListenerThe callbacks to run. Must not be null.
Exceptions
- InvalidOperationException
No
V.DndContextis above the component.