@microsoft/fast-element > RepeatDirective > (constructor)

RepeatDirective.(constructor)

Creates an instance of RepeatDirective.

Signature:

constructor(dataBinding: Binding<TSource>, templateBinding: Binding<TSource, SyntheticViewTemplate>, options: RepeatOptions);

Parameters

Parameter

Type

Description

dataBinding

Binding<TSource>

The binding that provides the array to render.

templateBinding

Binding<TSource, SyntheticViewTemplate>

The template binding used to obtain a template to render for each item in the array.

options

RepeatOptions

Options used to turn on special repeat features.