Skip to main content
Version: 2.x

ElementViewTemplate interface

@microsoft/fast-element > ElementViewTemplate

ElementViewTemplate interface

A template capable of creating views specifically for rendering custom elements.

Signature:

export interface ElementViewTemplate<TSource = any, TParent = any> 

Methods

Method

Description

create(hostBindingTarget)

Creates an ElementView instance based on this template definition.

render(source, host, hostBindingTarget)

Creates an HTMLView from this template, binds it to the source, and then appends it to the host.