---
id: fast-element.attachedbehaviorhtmldirective._constructor_
title: AttachedBehaviorHTMLDirective.(constructor)
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-element](./fast-element.md) &gt; [AttachedBehaviorHTMLDirective](./fast-element.attachedbehaviorhtmldirective.md) &gt; [(constructor)](./fast-element.attachedbehaviorhtmldirective._constructor_.md)

## AttachedBehaviorHTMLDirective.(constructor)

Constructs a new instance of the `AttachedBehaviorHTMLDirective` class

<b>Signature:</b>

```typescript
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](./fast-element.attachedbehaviortype.md)<!-- -->&lt;T&gt; | The behavior to instantiate and attach to the element. |
|  options | T | Options to pass to the behavior during creation. |
