Skip to main content

Class: NodeReference<T>

A reference to a component or element node.

Type parameters

NameType
Textends DisplayComponent<any> | HTMLElement | SVGElement

Constructors

constructor

new NodeReference<T>(): NodeReference<T>

Type parameters

NameType
Textends HTMLElement | SVGElement | DisplayComponent<any, []>

Returns

NodeReference<T>

Accessors

instance

get instance(): T

The instance of the element or component.

Returns

T

The instance of the element or component.

Defined in

src/sdk/components/FSComponent.ts:150

set instance(val): void

Sets the value of the instance.

Parameters

NameType
valT

Returns

void

Defined in

src/sdk/components/FSComponent.ts:161

Methods

getOrDefault

getOrDefault(): null | T

Gets the instance, or null if the instance is not populated.

Returns

null | T

The component or element instance.

Defined in

src/sdk/components/FSComponent.ts:169