Skip to content

AllWindowsEventComponentRegisterAllDocumentsDomEventParams<DocumentEventType>

Parameters for AllWindowsEventComponent.registerAllDocumentsDomEvent.

Import:

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

Signature:

export interface AllWindowsEventComponentRegisterAllDocumentsDomEventParams<DocumentEventType extends keyof DocumentEventMap>

Properties

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