Component that created this node in its render method (or undefined).
Level of nesting at which the node resides relative to the root node.
Zero-based index of this node in the parent's list of sub-nodes. This is zero for the root nodes that don't have parents.
Gets node's display name. This is used mostly for tracing and error reporting. The name can change during the lifetime of the virtual node; for example, it can reflect an "id" property of an element.
Gets node's parent. This is undefined for the top-level (root) nodes.
List of sub-nodes.
Text of the node.
Text DOM node.
Retrieves the value for a service with the given ID registered by a closest ancestor component or the default value if none of the ancestor components registered a service with this ID. This method doesn't establish a subscription and only reflects the current state.
Registers an object of any type as a service with the given ID that will be available for consumption by descendant components.
This method is called by the component when it needs to be updated.
Requests update of the text.
Subscribes to a service with the given ID. If the service with the given ID is registered by this or one of the ancestor components, the passed Ref object will reference it; otherwise, the Ref object will be set to the defaultValue (if specified) or will remain undefined. Whenever the value of the service that is registered by this or a closest ancestor component is changed,the Ref object will receive the new value. The useSelf optional parameter determines whether the component can subscribe to the service published by itself. The default is false.
Unregisters a service with the given ID.
Unsubscribes from a service with the given ID. The Ref object that was used to subscribe will be set to undefined.
Generated using TypeDoc
The ITextVN interface represents a virtual node for a text DOM node.