Skip to content

ObsidianWidgetType.setOwner method

ObsidianWidgetType › setOwner

Unofficial

Register the widget as the owner of the given element, so that clicks on it can be routed back here.

Signature:

setOwner(el: HTMLElement): void

Parameters:

ParameterTypeDescription
elHTMLElementThe element to associate with the widget.

Returns: void