Updatable document rendering context.

Hierarchy

Properties

document: Document

The document this context belongs to.

fragment: undefined | DrekFragment<[DrekContentStatus]>

A rendered fragment this context is provided by, if any.

nsAlias: NamespaceAliaser

Namespace aliaser to use.

readStatus: AfterEvent<[DrekContentStatus]>

An AfterEvent keeper of content placement status.

scheduler: RenderScheduler

Render scheduler to use.

window: Window

The window this context belongs to.

Accessors

  • get onceConnected(): OnEvent<TStatus>
  • 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.

    Returns OnEvent<TStatus>

  • get whenConnected(): OnEvent<TStatus>
  • 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.

    Returns OnEvent<TStatus>

  • get whenSettled(): OnEvent<TStatus>
  • 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.

    Returns OnEvent<TStatus>

Methods

  • Tries 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.

    Returns DrekContext<[DrekContentStatus]>

    Either a rendering context of the new root node, or this one.

Generated using TypeDoc