Ace API Reference
    Preparing search index...

    Class VScrollBar

    Represents a vertical scroll bar.

    Hierarchy

    • Scrollbar
      • VScrollBar
    Index

    Constructors

    • Creates a new VScrollBar. parent is the owner of the scroll bar.

      Parameters

      • parent: Element

        A DOM element

      • renderer: any

        An editor renderer

      Returns VScrollBar

    Properties

    $minWidth: number
    coeff: number
    element: HTMLDivElement
    inner: HTMLDivElement
    isVisible: any
    scrollHeight: number
    scrollTop: number
    setInnerHeight: (height: number) => void

    Sets the inner height of the scroll bar, in pixels.

    Type declaration

      • (height: number): void
      • Sets the scroll height of the scroll bar, in pixels.

        Parameters

        • height: number

          The new scroll height

        Returns void

    The new inner height

    Use setScrollHeight instead

    skipEvent: boolean
    width: number

    Methods

    • Returns the width of the scroll bar.

      Returns number

    • Sets the height of the scroll bar, in pixels.

      Parameters

      • height: number

        The new height

      Returns void

    • Sets the scroll height of the scroll bar, in pixels.

      Parameters

      • height: number

        The new scroll height

      Returns void

    • Sets the scroll top of the scroll bar.

      Parameters

      • scrollTop: number

        The new scroll top

      Returns void

    • Parameters

      • isVisible: any

      Returns void

    Events

    • Internal

      Emitted when the scroll bar, well, scrolls. scroll

      Returns void