@microsoft/fast-element > children
children() function
A directive that observes the childNodes of an element and updates a property whenever they change.
Signature:
export declare function children<TSource = any, TParent = any>(propertyOrOptions: (keyof TSource & string) | ChildrenDirectiveOptions<keyof TSource & string>): CaptureType<TSource, TParent>;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
propertyOrOptions |
(keyof TSource & string) | ChildrenDirectiveOptions<keyof TSource & string> |
The options used to configure child node observation. |
Returns:
CaptureType<TSource, TParent>