Skip to content

MarkdownPreviewRenderer.registerDomEvents method

MarkdownPreviewRenderer › registerDomEvents

Unofficial

Registers the DOM events.

Signature:

static registerDomEvents(el: HTMLElement, handlers: DomEventsHandlers, childElFn: ((childEl: HTMLElement) => boolean) | undefined): void

Parameters:

Parameter Type Description
el HTMLElement The element to register the events on.
handlers DomEventsHandlers The handlers to register.
childElFn ((childEl: HTMLElement) => boolean) | undefined The function to determine if childEl belongs to the el.

Returns: void