Skip to main content
Version: 2.x

HTMLView.insertBefore() method

@microsoft/fast-element > HTMLView > insertBefore

HTMLView.insertBefore() method

Inserts the view's DOM nodes before the referenced node.

Signature:

insertBefore(node: Node): void;

Parameters

Parameter

Type

Description

node

Node

The node to insert the view's DOM before.

Returns:

void