@adobe/data - v0.10.30
    Preparing search index...

    Function fromElementId

    • Uses DOM MutationObserver to watch for the addition or removal of an element with a specific id.

      Type Parameters

      • T extends HTMLElement = HTMLElement

      Parameters

      • ancestor: HTMLElement | ShadowRoot
      • id: string

        The id of the element to watch for.

      Returns Observe<null | T>

      a new Observe<Element | null> which yields null if element does not exist.