addDocEventListener | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Function addDocEventListener

    • Add an event listener to HTMLElements inside a document (which allows us to ensure that 'target' is a HTMLElement for easier typings)

      Type Parameters

      • CurrentTargetType extends HTMLElement
      • Type extends keyof HTMLElementEventMap

      Parameters

      Returns void

    • Add an event listener to HTMLElements inside a document (which allows us to ensure that 'target' is a HTMLElement for easier typings)

      Type Parameters

      • CurrentTargetType extends HTMLElement

      Parameters

      Returns void