Class: NodeReference<T>
A reference to a component or element node.
Type parameters
Name | Type |
---|---|
T | extends DisplayComponent <any > | HTMLElement | SVGElement |
Constructors
constructor
• new NodeReference<T
>(): NodeReference
<T
>
Type parameters
Name | Type |
---|---|
T | extends HTMLElement | SVGElement | DisplayComponent <any , []> |
Returns
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
Name | Type |
---|---|
val | T |
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