@microsoft/fast-element > ContentView

ContentView interface

A simple View that can be interpolated into HTML content.

Signature:

export interface ContentView 

Properties

Property

Modifiers

Type

Description

context

readonly

ExecutionContext

Methods

Method

Description

bind(source, context)

Binds a view's behaviors to its binding source.

insertBefore(node)

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

remove()

Removes the view's DOM nodes. The nodes are not disposed and the view can later be re-inserted.

unbind()

Unbinds a view's behaviors from its binding source and context.