Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TemplateBuilder

The template builder provides services to initialize the HTML content of the CustomElement.

Hierarchy

  • TemplateBuilder

Implements

Index

Constructors

constructor

Properties

Private content

content: string | ContentFactory

Private Optional isFocusDelegation

isFocusDelegation: boolean

Private isShadow

isShadow: boolean

Methods

build

shadow

  • shadow(focus?: boolean): this
  • By default, the template is appended as child of the CustomElement, With this options, an opened shadow DOM will be attached and the template append to it.

    Parameters

    • Optional focus: boolean

      when true the focus will be delegated to the shadow DOM

    Returns this

Static get

Static template

  • Class decorator used to define a template.

    Type parameters

    • T: HTMLElement

    Parameters

    Returns (Anonymous function)

Generated using TypeDoc