API REFERENCE · FEEDBACK
<dj-global-event>
Non-visual; attaches listeners to window/document for its lifetime. Set windowListeners / documentListeners (maps of event name → handler) as properties.
npm install @dojo-ng/global-event
import "@dojo-ng/global-event";
Properties
| Property | Attribute | Type | Default |
|---|---|---|---|
windowListeners |
Property only | Listeners |
{} |
documentListeners |
Property only | Listeners |
{} |
Types
The types that the properties above use, as they are declared in the source.
Listeners
type Listeners = Record<string, (e: Event) => void>;