Table of Contents

Method ForwardedRef

Namespace
Velvet
Assembly
Velvet.Docs.dll

ForwardedRef<T>()

Retrieves the handle reference passed by the parent via V.Component<TRef>(componentRef:).

public static Ref<T>? ForwardedRef<T>() where T : class

Returns

Ref<T>

The forwarded Ref<T>, or null when the parent did not forward one or types do not match.

Type Parameters

T

Handle type expected by this component.