Skip to content

AllWindowsEventComponentRegisterAllWindowsDomEventParams<WindowEventType>

Parameters for AllWindowsEventComponent.registerAllWindowsDomEvent.

Import:

import type { AllWindowsEventComponentRegisterAllWindowsDomEventParams } from '@mnaoumov/obsidian-lib/components/all-windows-event-component';

Signature:

export interface AllWindowsEventComponentRegisterAllWindowsDomEventParams<WindowEventType extends keyof WindowEventMap>

Properties

PropertyTypeDescription
callback(this: HTMLElement, $event: WindowEventMap[WindowEventType]) => unknownThe callback to execute.
options?AddEventListenerOptions | booleanThe options for the event.
typeWindowEventTypeThe type of the event.