@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
Constructor | Modifiers | Description |
---|---|---|
(constructor)(name, behavior, options) | Constructs a new instance of the AttachedBehaviorDirective class |
Methods
Method | Modifiers | Description |
---|---|---|
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. |