@microsoft/fast-element > RepeatDirective
RepeatDirective class
A directive that configures list rendering.
Signature:
export declare class RepeatDirective<TSource = any> implements HTMLDirective, ViewBehaviorFactory, BindingDirective
Implements: HTMLDirective, ViewBehaviorFactory, BindingDirective
Constructors
|
Constructor |
Modifiers |
Description |
|---|---|---|
|
Creates an instance of RepeatDirective. |
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
|
Binding<TSource> | ||
|
| |||
|
string |
The structural id of the DOM node to which the created behavior will apply. | ||
|
|
Binding<TSource, SyntheticViewTemplate> |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
Creates a behavior for the provided target node. | ||
|
Creates a placeholder string based on the directive's index within the template. |