Skip to content

ObsidianWidgetType.setPos method

ObsidianWidgetType › setPos

Unofficial

Record the document range the widget stands for.

Signature:

setPos(start: number, end: number): void

Parameters:

ParameterTypeDescription
startnumberStart offset in the document.
endnumberEnd offset in the document.

Returns: void