Skip to main content
Version: 1.x

@microsoft/fast-element > View

View interface

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

Signature:
export interface View 

Properties

PropertyTypeDescription
contextExecutionContext | nullThe execution context the view is running within.
sourceany | nullThe data that the view is bound to.

Methods

MethodDescription
bind(source, context)Binds a view's behaviors to its binding source.
dispose()Removes the view and unbinds its behaviors, disposing of DOM nodes afterward. Once a view has been disposed, it cannot be inserted or bound again.
unbind()Unbinds a view's behaviors from its binding source and context.