Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Variables

GlobalEventBus: { events: Record<string, Record<string, Listener[]>>; on: any } = ...

Type declaration

  • events: Record<string, Record<string, Listener[]>>

    Store the event managers and their listeners

  • on:function
    • on(event: string, selector: string, listener: Listener): void
    • Add an event listener on the given selector as a live listener (i.e. is not limited to the current matching set of {@link HTMLElement})

      Parameters

      • event: string

        The name of the event

      • selector: string

        The selector to match against

      • listener: Listener

        The listener to call when the event is triggered on an element that matches the given selector

      Returns void