Class Builder<T, U>

This will escape all input strings so it is safe by default. Pass a function that returns a string to explicitly indicate that you want the string treated as innerHTML.

Type Parameters

  • T extends string
  • U extends typeof Element

Hierarchy (view full)

Constructors

Properties

attrs: object = {}
children: IElementChild[] = []
components: IComponent[] = []
nsAttrs: object = {}
parents?: Set<IBuilder> = ...
props: object = {}
tag: T

Methods