@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
Constructor | Modifiers | Description |
---|---|---|
(constructor)(location, itemsBinding, isItemsBindingVolatile, templateBinding, isTemplateBindingVolatile, options) | Creates an instance of RepeatBehavior. |
Methods
Method | Modifiers | Description |
---|---|---|
bind(source, context) | Bind this behavior to the source. | |
unbind() | Unbinds this behavior from the source. |