Table of Contents

Class DndContextSettings

Namespace
Velvet
Assembly
Velvet.Docs.dll

Drag-and-drop scope configuration. All callbacks are optional; CollisionDetection null means RectIntersection; Activation is the scope-wide default a per-draggable override wins over.

public sealed record DndContextSettings
Inheritance
object
DndContextSettings

Constructors

DndContextSettings(Action<DragStartArgs>?, Action<DragOverArgs>?, Action<DragEndArgs>?, Action<DragCancelArgs>?, DndCollisionDetection?, DragActivation?, Action<DragMoveArgs>?)

Drag-and-drop scope configuration. All callbacks are optional; CollisionDetection null means RectIntersection; Activation is the scope-wide default a per-draggable override wins over.

Properties

Accessibility

Null means the default announcements, sent while a screen reader is enabled.

Activation
AutoScroll

Null means Default.

CollisionDetection
Modifiers

Applied in order to every drag's translate, dnd-kit's modifiers.

OnDragCancel
OnDragEnd
OnDragMove
OnDragOver
OnDragStart
Sensors

The sensors a press or key on a draggable is offered to, in order, dnd-kit's sensors; null means Default.