MCPcopy Index your code
hub / github.com/witheve/Eve / addLineWidget

Method addLineWidget

typings/codemirror/codemirror.d.ts:201–201  ·  view source on GitHub ↗

Adds a line widget, an element shown below a line, spanning the whole of the editor's width, and moving the lines below it downwards. line should be either an integer or a line handle, and node should be a DOM node, which will be displayed below the given line. options, when given, s

(line: any, node: HTMLElement, options?: {
            /** Whether the widget should cover the gutter. */
            coverGutter?: boolean;
            /** Whether the widget should stay fixed in the face of horizontal scrolling. */
            noHScroll?: boolean;
            /** Causes the widget to be placed above instead of below the text of the line. */
            above?: boolean;
            /** When true, will cause the widget to be rendered even if the line it is associated with is hidden. */
            showIfHidden?: boolean;
        })

Source from the content-addressed store, hash-verified

199 options, when given, should be an object that configures the behavior of the widget.
200 Note that the widget node will become a descendant of nodes with CodeMirror-specific CSS classes, and those classes might in some cases affect it. */
201 addLineWidget(line: any, node: HTMLElement, options?: {
202 /** Whether the widget should cover the gutter. */
203 coverGutter?: boolean;
204 /** Whether the widget should stay fixed in the face of horizontal scrolling. */

Callers 4

attachViewMethod · 0.80
updateWidgetsMethod · 0.80
updateWidgetMethod · 0.80
updateWidgetMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected