Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TemplateResult

The return type of html, which holds a Template and the values from interpolated expressions.

Hierarchy

Index

Constructors

constructor

  • new TemplateResult(strings: TemplateStringsArray, values: keyof unknown[], type: string, processor: TemplateProcessor): TemplateResult
  • Parameters

    • strings: TemplateStringsArray
    • values: keyof unknown[]
    • type: string
    • processor: TemplateProcessor

    Returns TemplateResult

Properties

processor

processor: TemplateProcessor

strings

strings: TemplateStringsArray

type

type: string

values

values: keyof unknown[]

Methods

getHTML

  • getHTML(): string
  • Returns a string of HTML used to create a <template> element.

    Returns string

getTemplateElement

  • getTemplateElement(): HTMLTemplateElement
  • Returns HTMLTemplateElement

Generated using TypeDoc