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