Skip to main content

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

RepeatBehavior.(constructor)

Creates an instance of RepeatBehavior.

Signature:
constructor(location: Node, itemsBinding: Binding<TSource, any[]>, isItemsBindingVolatile: boolean, templateBinding: Binding<TSource, SyntheticViewTemplate>, isTemplateBindingVolatile: boolean, options: RepeatOptions);

Parameters

ParameterTypeDescription
locationNodeThe location in the DOM to render the repeat.
itemsBindingBinding<TSource, any[]>The array to render.
isItemsBindingVolatilebooleanIndicates whether the items binding has volatile dependencies.
templateBindingBinding<TSource, SyntheticViewTemplate>The template to render for each item.
isTemplateBindingVolatilebooleanIndicates whether the template binding has volatile dependencies.
optionsRepeatOptionsOptions used to turn on special repeat features.