Interface DrekTarget<TStatus>

Rendering target.

Represents a part of the DOM tree to place the rendered content to.

Type Parameters

Hierarchy

  • DrekTarget

Properties

Methods

Properties

Rendering context of this rendering target.

host: Node

A DOM node that serves as a host of placed content.

Methods

  • Places rendered content to this target.

    It is up to the implementation to decide how the content is placed. E.g. some implementations append the content, while the others replace it.

    It is expected that this operation is performed within a render scheduler the user chooses, probably the one of rendering context.

    Parameters

    • content: Node

      Rendered DOM node to place.

    Returns DrekPlacement<TStatus>

    Rendered content placement status.

Generated using TypeDoc