Skip to main content

@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<T = any>(propertyOrOptions: (keyof T & string) | ChildrenBehaviorOptions<keyof T & string>): CaptureType<T>;

Parameters

ParameterTypeDescription
propertyOrOptions(keyof T & string) | ChildrenBehaviorOptions<keyof T & string>The options used to configure child node observation.
Returns:

CaptureType<T>