@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
Parameter | Type | Description |
---|---|---|
location | Node | The location in the DOM to render the repeat. |
itemsBinding | Binding<TSource, any[]> | The array to render. |
isItemsBindingVolatile | boolean | Indicates whether the items binding has volatile dependencies. |
templateBinding | Binding<TSource, SyntheticViewTemplate> | The template to render for each item. |
isTemplateBindingVolatile | boolean | Indicates whether the template binding has volatile dependencies. |
options | RepeatOptions | Options used to turn on special repeat features. |