Methods of Virtualizer.
getItemOffset(
index
):number
Get item offset from start.
number
index of item
number
getItemSize(
index
):number
Get item size.
number
index of item
number
scrollToIndex(
index
,opts
?):void
Scroll to the item specified by index.
number
index of item
options
void
scrollTo(
offset
):void
Scroll to the given offset.
number
offset from start
void
scrollBy(
offset
):void
Scroll by the given offset.
number
offset from current position
void
readonly
scrollOffset:number
Get current scrollTop, or scrollLeft if horizontal: true.
readonly
scrollSize:number
Get current scrollHeight, or scrollWidth if horizontal: true.
readonly
viewportSize:number
Get current offsetHeight, or offsetWidth if horizontal: true.
findStartIndex: () =>
number
Find the start index of visible range of items.
number
findEndIndex: () =>
number
Find the end index of visible range of items.
number