Skip to content

ObsidianWidgetType.toDOM method

ObsidianWidgetType › toDOM

Unofficial

Get the widget's container element, building it via ObsidianWidgetType.initDOM on first call.

Signature:

toDOM(view: EditorView): HTMLElement

Parameters:

ParameterTypeDescription
viewEditorViewThe CodeMirror editor view.

Returns: HTMLElementThe container element.