Table of Contents

Property RefCallback

Namespace
Velvet
Assembly
Velvet.Docs.dll

RefCallback

Callback ref invoked when the element is created or updated. The returned Action is invoked as cleanup when the element is detached from the DOM. Return null if no cleanup is needed. Coordinates with UseRef and SetElement(VisualElement).

public Func<VisualElement, Action>? RefCallback { get; init; }

Property Value

Func<VisualElement, Action>