Skip to main content

@microsoft/fast-element > AttachedBehaviorHTMLDirective > createPlaceholder

AttachedBehaviorHTMLDirective.createPlaceholder() method

Creates a placeholder string based on the directive's index within the template.

Signature:
createPlaceholder(index: number): string;

Parameters

ParameterTypeDescription
indexnumberThe index of the directive within the template.
Returns:

string

Remarks

Creates a custom attribute placeholder.