Skip to main content

@microsoft/fast-element > AttachedBehaviorHTMLDirective > (constructor)

AttachedBehaviorHTMLDirective.(constructor)

Constructs a new instance of the AttachedBehaviorHTMLDirective class

Signature:
constructor(name: string, behavior: AttachedBehaviorType<T>, options: T);

Parameters

ParameterTypeDescription
namestringThe name of the behavior; used as a custom attribute on the element.
behaviorAttachedBehaviorType<T>The behavior to instantiate and attach to the element.
optionsTOptions to pass to the behavior during creation.