Methods of VList.
getItemOffset(
index
):number
Get item offset from start.
number
index of item
number
VirtualizerHandle
.getItemOffset
src/svelte/Virtualizer.type.ts:99
getItemSize(
index
):number
Get item size.
number
index of item
number
src/svelte/Virtualizer.type.ts:104
scrollToIndex(
index
,opts
?):void
Scroll to the item specified by index.
number
index of item
options
void
VirtualizerHandle
.scrollToIndex
src/svelte/Virtualizer.type.ts:110
scrollTo(
offset
):void
Scroll to the given offset.
number
offset from start
void
src/svelte/Virtualizer.type.ts:115
scrollBy(
offset
):void
Scroll by the given offset.
number
offset from current position
void
src/svelte/Virtualizer.type.ts:120
getScrollOffset: () =>
number
Get current scrollTop, or scrollLeft if horizontal: true.
number
VirtualizerHandle
.getScrollOffset
src/svelte/Virtualizer.type.ts:78
getScrollSize: () =>
number
Get current scrollHeight, or scrollWidth if horizontal: true.
number
VirtualizerHandle
.getScrollSize
src/svelte/Virtualizer.type.ts:82
getViewportSize: () =>
number
Get current offsetHeight, or offsetWidth if horizontal: true.
number
VirtualizerHandle
.getViewportSize
src/svelte/Virtualizer.type.ts:86
findStartIndex: () =>
number
Find the start index of visible range of items.
number
VirtualizerHandle
.findStartIndex
src/svelte/Virtualizer.type.ts:90
findEndIndex: () =>
number
Find the end index of visible range of items.
number