@microsoft/fast-element > AttachedBehaviorHTMLDirective > (constructor)
AttachedBehaviorHTMLDirective.(constructor)
Constructs a new instance of the AttachedBehaviorHTMLDirective
class
constructor(name: string, behavior: AttachedBehaviorType<T>, options: T);
Parameters
Parameter | Type | Description |
---|---|---|
name | string | The name of the behavior; used as a custom attribute on the element. |
behavior | AttachedBehaviorType<T> | The behavior to instantiate and attach to the element. |
options | T | Options to pass to the behavior during creation. |