Represents a horisontal scroll bar.

Hierarchy

  • Scrollbar
    • HScrollBar

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: any
inner: HTMLDivElement
isVisible: any
scrollLeft: number
skipEvent: boolean

Methods

  • Returns the height of the scroll bar.

    Returns number

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

    Parameters

    • width: number

      The new inner width

    Returns void

    Deprecated

    Use setScrollWidth instead

  • Sets the scroll left of the scroll bar.

    Parameters

    • scrollLeft: number

      The new scroll left

    Returns void

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

    Parameters

    • width: number

      The new scroll 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

Events

  • Internal

    Emitted when the scroll bar, well, scrolls. scroll

    Returns void

Generated using TypeDoc