Skip to main content

@microsoft/fast-element > RepeatDirective

RepeatDirective class

A directive that configures list rendering.

Signature:
export declare class RepeatDirective<TSource = any> extends HTMLDirective 

Constructors

ConstructorModifiersDescription
(constructor)(itemsBinding, templateBinding, options)Creates an instance of RepeatDirective.

Properties

PropertyModifiersTypeDescription
createPlaceholder(index: number) => stringCreates a placeholder string based on the directive's index within the template.

Methods

MethodModifiersDescription
createBehavior(target)Creates a behavior for the provided target node.