the type of the Custom Element
Register a hook which will be invoked after the execution of regular hooks.
This API is dedicated for developer of Builders.
the name
the callback
Register a hook which will be invoked before the execution of regular hooks.
This API is dedicated for developer of Builders.
the name
the callback
A list of builder used to enhance the CustomElement.
a list of builders
Decorate the Custom Element class.
The tag name of the extended HTML element.
the tag name
Invokes the registered hooks.
This API is dedicated for developer of Builders.
the type
the name
the callback
The tag name of the custom element.
By default it is the kebab case of the class name, i.e. HelloWorld
=> hello-world
.
the tag name
Register a hook.
This API is dedicated for developer of Builders.
the name
the callback
Build and register the CustomElement.
The output is a wrapper class which extends the CustomElement class.
Provide a fresh builder.
the type of the Custom Element
the constructor, it's optional only when the decorator API (i.e. ElementBuilder.decorate) is used
Get or set builder to a target from the decorators of builders.
This API is dedicated for developer of Builders.
the type of the builder
the target
the builder
the id used to identify the builder
Generated using TypeDoc
The builder handles the definition and the registration of a Custom Element.
By default, the builder relies on the constructor to infer the tag name of the Custom Element, c.f. ElementBuilder.name.
If the Custom Element is a specialization of an existing
HTMLElement
, then the tag name of the extended element can be provided with ElementBuilder.extends.The core system of
<ceb/>
is a builder of builders and in fact,ElementBuilder
is the builder of builders. Therefore, additional builders can be provided to it in order to enhance the built Custom Element, c.f. ElementBuilder.builder.Finally, the registration of the Custom Element can be done with a regular way using the method ElementBuilder.register. However, the registration can also be done with the decorative style using the decorator ElementBuilder.decorate.