Skip to content

Methods

getSize(key)

Get the size of the current item by unique key value

getOffset()

Get the current scroll height

getClientSize()

Get wrapper element client viewport size (width or height)

getScrollSize()

Get all scroll size (scrollHeight or scrollWidth)

scrollToTop()

Scroll to top of list

scrollToBottom()

Scroll to bottom of list

scrollToKey(key)

Scroll to the specified data-key position

scrollToIndex(index: number)

Scroll to the specified index position

scrollToOffset(offset: number)

Scroll to the specified offset

Released under the MIT License.