ViewTemplate.(constructor)
@microsoft/fast-element > ViewTemplate > (constructor)
ViewTemplate.(constructor)
Creates an instance of ViewTemplate.
Signature:
constructor(html: string | HTMLTemplateElement, factories?: Record<string, ViewBehaviorFactory>, policy?: DOMPolicy | undefined);
Parameters
Parameter | Type | Description |
---|---|---|
html | string | HTMLTemplateElement | The html representing what this template will instantiate, including placeholders for directives. |
factories | Record<string, ViewBehaviorFactory> | (Optional) The directives that will be connected to placeholders in the html. |
policy | DOMPolicy | undefined | (Optional) The security policy to use when compiling this template. |