Class ElementNode
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
Node corresponding to a VisualElement (the host primitive, e.g. div, button).
public sealed class ElementNode : BaseElementNode
- Inheritance
-
objectElementNode
- Inherited Members
Properties
- OnCreated
Callback invoked only on the first creation of the element. Used to add Manipulators, etc.
- Styles
Limited inline styles.
- WrapElement
Function that wraps the element with a wrapper container. Input: the created VisualElement → output: the wrapper VisualElement. The Reconciler places the wrapper in the DOM and tracks the inner real element in a dictionary for patching. Primary use case: wrapping a button with a DropShadow container.