Style Observer API
    Preparing search index...

    Class RenderedObserver

    Monitor the presence of an element in the document. This observer fires the callback in situations like:

    • The element is added to the DOM
    • The element gets slotted or its slot starts existing (but not when moved to another slot)
    • The element becomes visible from display: none
    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    callback: any

    Methods

    • Begin observing the presence of an element.

      Parameters

      • element: Element

        The element to observe.

      Returns void

    • Stop observing the presence of an element.

      Parameters

      • Optionalelement: Element

        The element to stop observing. If not provided, all targets will be unobserved.

      Returns void