Skip to main content
Version: 2.x

ElementView interface

@microsoft/fast-element > ElementView

ElementView interface

A View representing DOM nodes specifically for rendering the view of a custom element.

Signature:

export interface ElementView<TSource = any, TParent = any> extends View<TSource, TParent> 

Extends: View<TSource, TParent>

Properties

Property

Modifiers

Type

Description

sourceLifetime?

readonly

SourceLifetime

(Optional) Indicates how the source's lifetime relates to the controller's lifetime.

Methods

Method

Description

appendTo(node)

Appends the view's DOM nodes to the referenced node.

onUnbind(behavior)

Registers an unbind handler with the controller.