Interface InnerContext<TStatus>

Rendering context provided by fragment to its content nodes.

Type Parameters

  • TStatus extends [DrekContentStatus]

    A type of the tuple containing a rendered content status as its first element.

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<Status<TStatus>>

An AfterEvent keeper of content placement status.

scheduler: DrekFragmentRenderScheduler<TStatus>

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

Generated using TypeDoc