An overlay widgets renders on top of the text.

interface IOverlayWidget {
    allowEditorOverflow?: boolean;
    onDidLayout?: IEvent<void>;
    getDomNode(): HTMLElement;
    getId(): string;
    getMinContentWidthInPx?(): number;
    getPosition(): IOverlayWidgetPosition;
}

Properties

allowEditorOverflow?: boolean

Render this overlay widget in a location where it could overflow the editor's view dom node.

onDidLayout?: IEvent<void>

Event fired when the widget layout changes.

Methods

  • Get the dom node of the overlay widget.

    Returns HTMLElement

  • Get a unique identifier of the overlay widget.

    Returns string

  • The editor will ensure that the scroll width is >= than this value.

    Returns number