Options
All
  • Public
  • Public/Protected
  • All
Menu

自定义的滚动栏

Hierarchy

  • TableScrollBar

Index

Constructors

constructor

Properties

$elemt

$elemt: any

beginScrolling

beginScrolling: boolean

Protected doResizeScrollHandle

doResizeScrollHandle: DebouncedFunc<() => void> = ...

Private posDifference

posDifference: any

鼠标按下时的坐标与滚动长度的

scrollWidth

scrollWidth: number

type

view

Methods

Private beginScroll

  • beginScroll(ev: any): void
  • 滚动栏开始滚动

    Parameters

    • ev: any

    Returns void

doIniScrollEvent

  • doIniScrollEvent(): void
  • 初始化滚动条的事件

    Returns void

Protected doRenderScroll

  • doRenderScroll(): void
  • 渲染滚动栏

    Returns void

Protected doResizeScroll

  • doResizeScroll(): void
  • 滚动栏的显示/隐藏

    Returns void

Private doScroll

  • doScroll(posPercent: any): void
  • 滚动栏移动

    Parameters

    • posPercent: any

      移动多少百分比: scrollLeft / scrollTop

    Returns void

Protected doScrollBarTo

  • doScrollBarTo(scrollLeft: any, scrollTop: any): void
  • Parameters

    • scrollLeft: any
    • scrollTop: any

    Returns void

Private endScroll

  • endScroll(): void
  • 结束滚动

    Returns void

getScrollBarElemt

  • getScrollBarElemt(): JQuery<HTMLElement>
  • Returns JQuery<HTMLElement>

Protected getScrollElemt

  • getScrollElemt(): JQuery<HTMLElement>
  • 得到滚动的主元素

    Returns JQuery<HTMLElement>

getSizeElemt

  • getSizeElemt(): JQuery<HTMLElement>
  • Returns JQuery<HTMLElement>

getTrackElemt

  • getTrackElemt(): JQuery<HTMLElement>
  • Returns JQuery<HTMLElement>

render

  • render(): void
  • 开始渲染

    Returns void

resize

  • resize(): void
  • 重新计算尺寸和位置

    Returns void

Private scrollTo

  • scrollTo(pos: any): void
  • 滚动到位置

    Parameters

    • pos: any

      位置坐标(像素)

    Returns void

Private scrolling

  • scrolling(ev: any): void
  • 滚动栏滚动中

    Parameters

    • ev: any

    Returns void

Private setLR

  • setLR(scrollLeft: any, scrollTop: any): void
  • Parameters

    • scrollLeft: any
    • scrollTop: any

    Returns void

setPos

  • setPos(scrollLeft: number, scrollTop: number): void
  • 设置进度条的位置

    Parameters

    • scrollLeft: number

      scrollLeft

    • scrollTop: number

      scrollTop

    Returns void

Generated using TypeDoc