Skip to main content

@microsoft/fast-element > RefBehavior > (constructor)

RefBehavior.(constructor)

Creates an instance of RefBehavior.

Signature:
constructor(target: HTMLElement, propertyName: string);

Parameters

ParameterTypeDescription
targetHTMLElementThe element to reference.
propertyNamestringThe name of the property to assign the reference to.