Skip to main content

@microsoft/fast-element > TargetedHTMLDirective

TargetedHTMLDirective class

A HTMLDirective that targets a named attribute or property on a node.

Signature:
export declare abstract class TargetedHTMLDirective extends HTMLDirective 

Properties

PropertyModifiersTypeDescription
createPlaceholder(index: number) => stringCreates a placeholder string based on the directive's index within the template.
targetNamestring | undefinedGets/sets the name of the attribute or property that this directive is targeting on the associated node.