@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
Property | Type | Description |
---|---|---|
context | ExecutionContext | null | The execution context the view is running within. |
source | any | null | The data that the view is bound to. |
Methods
Method | Description |
---|---|
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. |