Skip to main content

getEnabledElement

Callable


  • A convenience method to find an EnabledElement given a reference to its associated element. Commonly used in code that’s handling a custom event emitted by this library.


    Parameters

    • element: HTMLDivElement

      a reference to an EnabledElement/Viewport’s div element

    Returns IEnabledElement | undefined

    the associated EnabledElement, or undefined if no matching EnabledElement can be found