Class: NodeReference<T>
Defined in: src/sdk/components/FSComponent.ts:141
A reference to a component or element node.
Type Parameters
| Type Parameter |
|---|
T extends DisplayComponent<any, any> | HTMLElement | SVGElement |
Constructors
Constructor
new NodeReference<
T>():NodeReference<T>
Returns
NodeReference<T>
Accessors
instance
Get Signature
get instance():
T
Defined in: src/sdk/components/FSComponent.ts:150
The instance of the element or component.
Returns
T
The instance of the element or component.
Set Signature
set instance(
val):void
Defined in: src/sdk/components/FSComponent.ts:161
Sets the value of the instance.
Parameters
| Parameter | Type |
|---|---|
val | T |
Returns
void
Methods
getOrDefault()
getOrDefault():
null|T
Defined in: src/sdk/components/FSComponent.ts:169
Gets the instance, or null if the instance is not populated.
Returns
null | T
The component or element instance.