@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 ViewBehavior, Subscriber 

Implements: ViewBehavior, Subscriber

Constructors

Constructor

Modifiers

Description

(constructor)(directive)

Creates an instance of RepeatBehavior.

Methods

Method

Modifiers

Description

bind(controller)

Bind this behavior.

handleChange(source, args)

Handles changes in the array, its items, and the repeat template.

unbind()

Unbinds this behavior.