Cm5LineWidget
Unofficial
A line widget in a CodeMirror 5 editor.
Import:
import type { Cm5LineWidget } from '@obsidian-typings/obsidian-public-latest';Signature:
export interface Cm5LineWidgetMethods
| Method | Returns | Description | |
|---|---|---|---|
| changed() | void | Call this if you made some change to the widget's DOM node that might affect its height. | |
| clear() | void | Removes the widget. | |
| off('redraw', handler) | void | Removes an event listener. | |
| on('redraw', handler) | void | Registers an event listener. |
Links to this page: