the type of the Custom Element
This API is dedicated for developer of Builders.
Decorate the Custom Element class.
Forces the content injection into the Shadow DOM.
when true
, the focus is delegated to the shadow DOM
Provide a fresh builder.
the type of the Custom Element
the initial content
Generated using TypeDoc
The builder handles the initialization of the HTML content of the Custom Element.
The content can be provided as a string value or a factory function (c.f. ContentFactory) when the builder is created with ContentBuilder.get.
By default, the builder injects the content as children of the Custom Element into the Light DOM on the lifecycle callback
connectedCallback
. However, the builder can inject the content within the Shadow DOM with ContentBuilder.shadow.Finally, the builder can be registered using the method ElementBuilder.builder of the main builder (i.e. ElementBuilder). However, it can also be registered with the decorative style using the decorator ContentBuilder.decorate.