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

    Function fromElementProperty

    • Returns an observable that will notify observers when the element property changes. If there are any events provided, then the observer will be notified when the event is triggered. If there are not then a dom mutation observer will be used to watch for changes.

      Type Parameters

      • T extends HTMLElement
      • K extends string | number | symbol
      • E extends keyof HTMLElementEventMap

      Parameters

      • element: T

        The element to watch a property for changes.

      • property: K

        The property on the element to watch for changes.

      • events: E[] = []

        The events that will trigger a new notification of changed values.

      Returns Observe<T[K]>