Skip to main content
Version: 2.x

View interface

@microsoft/fast-element > View

View interface

Represents a collection of DOM nodes which can be bound to a data source.

Signature:

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

Extends: Disposable

Properties

Property

Modifiers

Type

Description

context

readonly

ExecutionContext<TParent>

The execution context the view is running within.

isBound

readonly

boolean

Indicates whether the controller is bound.

source

readonly

TSource | null

The data that the view is bound to.

Methods

Method

Description

bind(source, context)

Binds a view's behaviors to its binding source.

unbind()

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