Skip to main content

@microsoft/fast-element > RepeatBehavior

RepeatBehavior class

A behavior that renders a template for each item in an array.

Signature:
export declare class RepeatBehavior<TSource = any> implements Behavior, Subscriber 

Constructors

ConstructorModifiersDescription
(constructor)(location, itemsBinding, isItemsBindingVolatile, templateBinding, isTemplateBindingVolatile, options)Creates an instance of RepeatBehavior.

Methods

MethodModifiersDescription
bind(source, context)Bind this behavior to the source.
unbind()Unbinds this behavior from the source.