---
id: fast-element.nodebehaviorfactory
title: NodeBehaviorFactory interface
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-element](./fast-element.md) &gt; [NodeBehaviorFactory](./fast-element.nodebehaviorfactory.md)

## NodeBehaviorFactory interface

A factory that can create a [Behavior](./fast-element.behavior.md) associated with a particular location within a DOM fragment.

<b>Signature:</b>

```typescript
export interface NodeBehaviorFactory 
```

## Properties

|  Property | Type | Description |
|  --- | --- | --- |
|  [targetIndex](./fast-element.nodebehaviorfactory.targetindex.md) | number | The index of the DOM node to which the created behavior will apply. |

## Methods

|  Method | Description |
|  --- | --- |
|  [createBehavior(target)](./fast-element.nodebehaviorfactory.createbehavior.md) | Creates a behavior for the provided target node. |
