Ace API Reference
    Preparing search index...

    Represents a horizontal scroll bar.

    Hierarchy

    • ScrollBar
      • HScrollBar
    Index

    Constructors

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

      Parameters

      • parent: Element

        A DOM element

      • renderer: any

        An editor renderer

      Returns HScrollBar

    Properties

    coeff: number
    element: HTMLDivElement
    height: number
    HScrollHeight: number
    inner: HTMLDivElement
    isVisible: any
    pageWidth: any
    renderer: any
    scrollLeft: number
    scrollWidth: number
    setInnerWidth: (width: number, force: boolean) => void

    Type declaration

      • (width: number, force: boolean): void
      • Sets the inner and scroll width of the scroll bar, in pixels.

        Parameters

        • width: number

          The new inner width

        • force: boolean

          Forcely update width

        Returns void

    skipEvent: boolean
    slideWidth: number
    thumbLeft: number
    thumbWidth: number
    viewWidth: number
    VScrollWidth: number
    width: number

    Methods

    • Internal

      Emitted when the scroll thumb dragged or scrollbar canvas clicked.

      Parameters

      • eType: any
      • e: any

      Returns void

    • Returns new left for scroll thumb

      Parameters

      • thumbLeft: number

      Returns number

    • Sets the scroll left of the scroll bar.

      Parameters

      • scrollLeft: number

        The new scroll left

      Returns void

    • Sets the inner and scroll width of the scroll bar, in pixels.

      Parameters

      • width: number

        The new inner width

      • force: boolean

        Forcely update width

      Returns void

    • Parameters

      • isVisible: any

      Returns void

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

      Parameters

      • width: number

        The new width

      Returns void