@microsoft/fast-element > AttachedBehaviorDirective

AttachedBehaviorDirective class

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

Signature:
export declare class AttachedBehaviorDirective<T = any> extends Directive

Constructors

ConstructorModifiersDescription
(constructor)(name, behavior, options)Constructs a new instance of the AttachedBehaviorDirective 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.