Skip to content

MarkdownPreviewRenderer.registerDomEvents method

MarkdownPreviewRenderer › registerDomEvents

Unofficial

Registers the DOM events.

Signature:

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

Parameters:

ParameterTypeDescription
elHTMLElementThe element to register the events on.
handlersDomEventsHandlersThe handlers to register.
childElFn?(childEl: HTMLElement) => booleanThe function to determine if childEl belongs to the el.

Returns: void