Skip to main content

@microsoft/fast-element > ElementViewTemplate > render

ElementViewTemplate.render() method

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

Signature:
render(source: any, host: Node, hostBindingTarget?: Element): HTMLView;

Parameters

ParameterTypeDescription
sourceanyThe data source to bind the template to.
hostNodeThe Element where the template will be rendered.
hostBindingTargetElementAn HTML element to target the host bindings at if different from the host that the template is being attached to.
Returns:

HTMLView