Constructors

Properties

$annotations: any[]
$cursorCell: any
$cursorRow: any
$fixedWidth: boolean
$highlightGutterLine: boolean
$lines: Lines
$padding: {}

Type declaration

    $renderer: string | {
        getText: (() => string);
        getWidth: (() => number);
    }

    Type declaration

    • getText: (() => string)
        • (): string
        • Returns string

    • getWidth: (() => number)
        • (): number
        • Returns number

    $showFoldWidgets: boolean
    $showLineNumbers: boolean
    config: LayerConfig
    element: HTMLDivElement
    gutterWidth: number
    oldLastRow: number
    session: EditSession

    Methods

    • Experimental

      Displays a custom widget for a specific row

      Parameters

      • row: number

        The row number where the widget will be displayed

      • attributes: {
            callbacks: any;
            className: string;
            label: string;
            title: string;
        }

        Configuration attributes for the widget

        • callbacks: any

          Event callback functions for the widget e.g onClick;

        • className: string

          CSS class name for styling the widget

        • label: string

          Text label to display in the widget

        • title: string

          Tooltip text for the widget

      • cell: any

        Gutter cell

      Returns void

    • Experimental

      Retrieves the gutter cell element at the specified cursor row position.

      Parameters

      • row: number

        The row number in the editor where the gutter cell is located starts from 0

      Returns HTMLElement

      The gutter cell element at the specified row, or null if not found

    • Experimental

      Hides the fold widget/icon from a specific row in the gutter

      Parameters

      • row: number

        The row number from which to hide the fold icon

      • cell: any

        Gutter cell

      Returns void

    • Experimental

      Remove a custom widget for a specific row

      Parameters

      • row: number

        The row number where the widget will be removed

      • cell: any

        Gutter cell

      Returns void

    • Parameters

      • cell: any
      • config: LayerConfig
      • fold: IRange
      • row: number

      Returns any

    • Parameters

      • config: LayerConfig
      • firstRow: number
      • lastRow: number

      Returns any[]

    • Experimental

      Shows the fold widget/icon from a specific row in the gutter

      Parameters

      • row: number

        The row number from which to show the fold icon

      • cell: any

        Gutter cell

      Returns void

    • Parameters

      • row: number
      • className: string

      Returns void

    • Parameters

      • point: {
            x: number;
        }
        • x: number

      Returns "markers" | "foldWidgets"

    • Parameters

      • row: number
      • className: string

      Returns void

    • Parameters

      • highlightGutterLine: boolean

      Returns void

    Generated using TypeDoc