Options
All
  • Public
  • Public/Protected
  • All
Menu

Module VirtualDOM

The namespace for the virtual DOM rendering functions.

Index

Functions

Functions

realize

  • Create a real DOM element from a virtual element node.

    Parameters

    Returns HTMLElement

    A new DOM element for the given virtual element node.

    Notes

    This creates a brand new real DOM element with a structure which matches the given virtual DOM node.

    If virtual diffing is desired, use the render function instead.

render

  • Render virtual DOM content into a host element.

    Parameters

    • content: VirtualNode | ReadonlyArray<VirtualNode> | null

      The virtual DOM content to render.

    • host: HTMLElement

      The host element for the rendered content.

      Notes

      This renders the delta from the previous rendering. It assumes that the content of the host element is not manipulated by external code.

      Providing null content will clear the rendering.

      Externally modifying the provided content or the host element will result in undefined rendering behavior.

    Returns void

Generated using TypeDoc