Ace API Reference
    Preparing search index...
    Index

    Constructors

    • Parameters

      • parentEl: HTMLElement

      Returns Gutter

    Properties

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

    @type{GutterRenderer}

    $showCursorMarker: any
    $showFoldWidgets: boolean
    $showLineNumbers: boolean
    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 undefined 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

    • 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 }

      Returns "markers" | "foldWidgets"

    • Parameters

      • row: number
      • className: string

      Returns void

    • Parameters

      • annotations: any[]

      Returns void

    • Parameters

      • highlightGutterLine: boolean

      Returns void

    • Parameters

      • session: EditSession

      Returns void

    • Parameters

      • Optionalshow: boolean

      Returns void