Represents a vertical scroll bar.

Hierarchy

  • Scrollbar
    • VScrollBar

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) => void)

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

Type declaration

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

      Parameters

      • height: number

        The new inner height

      Returns void

      Deprecated

      Use setScrollHeight instead

Param: height

The new inner height

Deprecated

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

Generated using TypeDoc