@microsoft/fast-element > NodeObservationDirective
NodeObservationDirective class
A base class for node observation.
Signature:
export declare abstract class NodeObservationDirective<T extends NodeBehaviorOptions> extends StatelessAttachedAttributeDirective<T>
Extends: StatelessAttachedAttributeDirective<T>
Remarks
Internally used by the SlottedDirective and the ChildrenDirective.
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
string |
The unique id of the factory. | ||
|
string |
The structural id of the DOM node to which the created behavior will apply. |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
Bind this behavior to the source. | ||
|
|
Computes the set of nodes that should be assigned to the source property. | |
|
|
Disconnects observation of the nodes. | |
|
|
Retrieves the raw nodes that should be assigned to the source property. | |
|
|
Gets the data source for the target. | |
|
|
Begins observation of the nodes. | |
|
Unbinds this behavior from the source. | ||
|
|
Updates the source property with the computed nodes. |