Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TemplateResult

Created from each html... or svg.... Every time call component.update will generate a new template result, then we will use this result to merge or replaced old one.

Hierarchy

  • TemplateResult

Index

Constructors

Properties

Methods

Constructors

constructor

  • new TemplateResult(type: TemplateType, strings: TemplateStringsArray | string[], values: any[]): TemplateResult

Properties

Readonly strings

strings: TemplateStringsArray | string[]

Readonly type

type: TemplateType

Readonly values

values: any[]

Methods

extends

  • A template result can extend another: "css....extends(...)" will join them. "html....extends(...)" is different, see the comments below.

    For html or svg template the extends will merge root attributes and slot elements into super, so you can reuse super rendering result and add some classes or styles and set same slots,

    Parameters

    Returns TemplateResult

toString

  • toString(): string

Generated using TypeDoc