A type of component.
Readonly
componentComponent class constructor.
Readonly
elementCustom element definition.
Readonly
elementCustom element class constructor.
It is an error accessing this property before the element class is created, e.g. from inside of
define function. In such case you may wish to add a whenReady()
callback.
Readonly
whenAn OnEvent
sender of component context upon its instantiation.
If component instantiated after the receiver is registered, that receiver would receive an instantiated component's context immediately.
If component already exists when the receiver is registered, that receiver would receive instantiated component's context only when/if component is connected. This is to prevent resource leaks on destroyed components.
Readonly
whenAn OnEvent
sender of component definition context upon its readiness.
The custom element class is not constructed until component definition is complete. The registered receiver will be notified when the custom element class is constructed.
If the custom element class is constructed already, the receiver will be notified immediately.
Obtains value of the given context entry.
Either context entry value, or a fallback one.
Requested context value type.
Context entry to obtain the value of.
Optional
request: WithoutFallback<TValue>Context value request with fallback specified.
Obtains value of the given context entry, or returns a non-nullable fallback.
Either context entry value, or a fallback one.
Requested context value type.
Context entry to obtain the value of.
Context value request with fallback specified.
Obtains value of the given context entry, or returns a nullable fallback.
Either context entry value, or a fallback one.
CxReferenceError - If the target entry
has no value and fallback one is not provided.
Requested context value type.
Context entry to obtain the value of.
Optional
request: CxRequest<TValue>Context value request.
Mounts a component to arbitrary element.
This method creates a component, but instead of creating a custom element for, it mounts it to the target
element
.
It is up to the features to update the target element. They can use a mounted flag to check whether the component is mounted or constructed in a standard way.
The constructed component connection state is maintained by DocumentRenderKit document render kit.
Mounted component context.
Error If target element is already bound to some component.
Target element to mount new component to.
Provides asset for entry available in contexts of each component of the defined component type.
Asset supply. Revokes provided asset once cut off.
Context value type.
Context value asset type.
Context entry asset.
Generated using TypeDoc
Component definition context.
Extends
ContextValues
interface. The values are provided by corresponding providers registered with perDefinition and perDefinition methods. All BootstrapContext values are available too.