Table of Contents

Method Droppable

Namespace
Velvet
Assembly
Velvet.Docs.dll

Droppable(string, object?, bool, string?, string?, string?, string?, string?, FiberElementProps?, StyleOverrides?, Func<VisualElement, Action>?, VNode?[]?, string?, string?, string?, IReadOnlyDictionary<string, string>?, IReadOnlyDictionary<string, string>?)

Drop target. Collides with the active drag's rect under the scope's collision strategy; accept-filtering stays app logic in the scope callbacks.

public static ElementNode Droppable(string id, object? dropData = null, bool disabled = false, string? whileOverClass = null, string? whileDragActiveClass = null, string? className = null, string? key = null, string? name = null, FiberElementProps? props = null, StyleOverrides? styles = null, Func<VisualElement, Action>? refCallback = null, VNode?[]? children = null, string? whileHoverClass = null, string? whileTapClass = null, string? whileFocusClass = null, IReadOnlyDictionary<string, string>? data = null, IReadOnlyDictionary<string, string>? aria = null)

Parameters

id string

Identity reported to the scope callbacks.

dropData object

Arbitrary payload carried into the callbacks.

disabled bool

A disabled droppable never collides.

whileOverClass string

Classes applied while this target is the winning collision.

whileDragActiveClass string

Classes applied to every enabled candidate while any drag is live in scope.

className string
key string
name string
props FiberElementProps
styles StyleOverrides
refCallback Func<VisualElement, Action>
children VNode[]
whileHoverClass string
whileTapClass string
whileFocusClass string
data IReadOnlyDictionary<string, string>
aria IReadOnlyDictionary<string, string>

Returns

ElementNode

The created ElementNode.