Skip to content

Cm5LineWidget

Unofficial

A line widget in a CodeMirror 5 editor.

Import:

import type { Cm5LineWidget } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

export interface Cm5LineWidget

Methods

MethodReturnsDescription
changed()voidCall this if you made some change to the widget's DOM node that might affect its height.
clear()voidRemoves the widget.
off('redraw', handler)voidRemoves an event listener.
on('redraw', handler)voidRegisters an event listener.

Links to this page: