---
id: fast-element.repeatdirective
title: RepeatDirective class
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-element](./fast-element.md) &gt; [RepeatDirective](./fast-element.repeatdirective.md)

## RepeatDirective class

A directive that configures list rendering.

<b>Signature:</b>

```typescript
export declare class RepeatDirective<TSource = any> extends HTMLDirective 
```

## Constructors

|  Constructor | Modifiers | Description |
|  --- | --- | --- |
|  [(constructor)(itemsBinding, templateBinding, options)](./fast-element.repeatdirective._constructor_.md) |  | Creates an instance of RepeatDirective. |

## Properties

|  Property | Modifiers | Type | Description |
|  --- | --- | --- | --- |
|  [createPlaceholder](./fast-element.repeatdirective.createplaceholder.md) |  | (index: number) =&gt; string | Creates a placeholder string based on the directive's index within the template. |

## Methods

|  Method | Modifiers | Description |
|  --- | --- | --- |
|  [createBehavior(target)](./fast-element.repeatdirective.createbehavior.md) |  | Creates a behavior for the provided target node. |
