Represents a horizontal 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

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

Type declaration

    • (width, force): 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
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

Generated using TypeDoc