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
idstringIdentity reported to the scope callbacks.
dropDataobjectArbitrary payload carried into the callbacks.
disabledboolA disabled droppable never collides.
whileOverClassstringClasses applied while this target is the winning collision.
whileDragActiveClassstringClasses applied to every enabled candidate while any drag is live in scope.
classNamestringkeystringnamestringpropsFiberElementPropsstylesStyleOverridesrefCallbackFunc<VisualElement, Action>childrenVNode[]whileHoverClassstringwhileTapClassstringwhileFocusClassstringdataIReadOnlyDictionary<string, string>ariaIReadOnlyDictionary<string, string>
Returns
- ElementNode
The created ElementNode.