Represents a vertical scroll bar.

Hierarchy (View Summary)

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

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

      • height: number

        The new inner height

      Returns void

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