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