Skip to main content

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

RepeatDirective.(constructor)

Creates an instance of RepeatDirective.

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

Parameters

ParameterTypeDescription
itemsBindingBindingThe binding that provides the array to render.
templateBindingBinding<TSource, SyntheticViewTemplate>The template binding used to obtain a template to render for each item in the array.
optionsRepeatOptionsOptions used to turn on special repeat features.