Abstract A type of the tuple containing a context content status as its first element.
Readonly Abstract documentThe document this context belongs to.
Readonly Abstract fragmentA rendered fragment this context is provided by, if any.
Readonly Abstract nsNamespace aliaser to use.
Readonly Abstract readAn AfterEvent keeper of content placement status.
Readonly Abstract schedulerRender scheduler to use.
Readonly Abstract windowThe window this context belongs to.
An OnEvent sender of placed content connection event.
The registered receiver is called when placed content is connected. If connected already the receiver is called immediately.
An OnEvent sender of single placed content connection event.
The registered receiver is called when placed content is connected. If connected already the receiver is called immediately.
In contrast to onceConnected, cuts off the event supply after sending the first event.
An OnEvent sender of a settlement event.
Such event can be sent by rendered fragment.
The same as whenConnected by default.
Cuts off the event supply after sending the first event.
An alias of readStatus.
An AfterEvent keeper of content placement status.
Abstract liftTries to lift this rendering context to enclosing one.
Tries to find a new root node. If the new root differs from current one, then finds a context of that new root and connects the status of this context to the found one. After successful lifting the context becomes a proxy accessor of the context it is lifted to, so the latter can be used instead.
This has effect for unrooted contexts only.
Either a rendering context of the new root node, or this one.
Generated using TypeDoc
Document rendering context.
Can be obtained by drekContextOf function, or provided by rendered fragment.
There are three kinds of rendering contexts:
Document rendering context.
Such context is always available in document and returned by drekContextOf function for any DOM node connected to the document.
Fragment content rendering context.
It is created for each rendered fragment and is available via innerContext property. The drekContextOf function returns this context for fragment's content, as well as for each DOM node added to it.
Unrooted rendering context.
When a DOM node is neither connected to a document, nor part of a rendered fragment's content, the drekContextOf function creates an unrooted context for the root node of that node.
Unrooted context tracks a document connection and settlement semi-automatically. A lift method can be used to forcibly update them.
Semi-automatic tracking means that each time an unrooted context created, it is registered for automatic lifting. The lifting happens either asynchronously, or synchronously right before the drekBuild function exit.
Alternatively, a drekLift function can be used to lift a context of the root node after adding it to another one.