@microsoft/fast-element > ElementController > renderTemplate

ElementController.renderTemplate() method

Renders the provided template to the element.

Signature:

protected renderTemplate(template: ElementViewTemplate | null | undefined): void;

Parameters

Parameter

Type

Description

template

ElementViewTemplate | null | undefined

The template to render.

Returns:

void

Remarks

If null is provided, any existing view will be removed.