Skip to main content
Version: 2.x

ViewBehaviorFactory interface

@microsoft/fast-element > ViewBehaviorFactory

ViewBehaviorFactory interface

A factory that can create a ViewBehavior associated with a particular location within a DOM fragment.

Signature:

export interface ViewBehaviorFactory 

Properties

Property

Modifiers

Type

Description

id?

string

(Optional) The unique id of the factory.

policy?

DOMPolicy

(Optional) The policy that the created behavior must run under.

targetNodeId?

string

(Optional) The structural id of the DOM node to which the created behavior will apply.

targetTagName?

string | null

(Optional) The tag name of the DOM node to which the created behavior will apply.

Methods

Method

Description

createBehavior()

Creates a behavior.