You are viewing documentation for a previous version of FAST. The latest version is 3.x. View latest docs →

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

HTMLView.(constructor)

Constructs an instance of HTMLView.

Signature:

constructor(fragment: DocumentFragment, factories: ReadonlyArray<CompiledViewBehaviorFactory>, targets: ViewBehaviorTargets);

Parameters

Parameter

Type

Description

fragment

DocumentFragment

The html fragment that contains the nodes for this view.

factories

ReadonlyArray<CompiledViewBehaviorFactory>

targets

ViewBehaviorTargets