Abstract Private Optional _attachedThe DOM element to which this part was last rendered.
Private Optional _mountThe DOM element to which which this part has been explicitly mounted. (Will be undefined for all except root parts)
Returns the current context.
Either this part's explicit mount element, or the element found by its id. This will return null if the part is un-attached parts, i.e.:
Whether or not the part is currently in the DOM tree with either a parent or a valid DOM element mount point.
Whether the part is a root part (doesn't have a parent, is mounted directly to a DOM element).
the name of the part class.
Returns the query params from the current context.
Subclasses can override this to provide a list of classes to apply to the parent element.
Protected _attachPrivate _markPrivate _requestPrivate _setPrivate _updatePrivate addIterates over each direct child part.
Creates and emits a message for the given type and key.
Emits a generic message associated with the part (as opposed to a DOM event).
the message key
data associated with the message
Optional options: EmitOptionsconfigures how the message is emitted
Listens for a generic message on the part (emitted with emitMessage()).
the message key
the message handler
message handling options
Looks up a child part by name.
the name of the child part assigned during makePart or makeStatelessPart
Removes a child part by id.
the id of the part
Static mountMounts a part to a DOM element (by DOM object or id).
Optional mountOptions: MountOptionsGenerated using TypeDoc
Base class for all parts.