Skip to main content

@microsoft/fast-element > AttachedBehaviorHTMLDirective

AttachedBehaviorHTMLDirective class

A directive that attaches special behavior to an element via a custom attribute.

Signature:
export declare class AttachedBehaviorHTMLDirective<T = any> extends HTMLDirective 

Constructors

ConstructorModifiersDescription
(constructor)(name, behavior, options)Constructs a new instance of the AttachedBehaviorHTMLDirective class

Methods

MethodModifiersDescription
createBehavior(target)Creates a behavior for the provided target node.
createPlaceholder(index)Creates a placeholder string based on the directive's index within the template.