Home Identifier Source Repository
public class | source

TemplateBuilder

Extends:

Builder → TemplateBuilder

The template builder. Its goal is to provide a way to fill the content of a custom element.

Constructor Summary

Public Constructor
public

constructor(tpl: string | function(el: HTMLElement))

Inherited Summary

From class Builder
public

build(proto: CustomElementBuilder.context.proto, on: on)

To specify the logic of the builder.

Public Constructors

public constructor(tpl: string | function(el: HTMLElement)) source

Params:

NameTypeAttributeDescription
tpl string | function(el: HTMLElement)
  • nullable: false

the template as a string or a function