Interface: VListHandle

September 11, 2026 ยท View on GitHub

API


Interface: VListHandle

Defined in: src/solid/VList.tsx:15

Methods of VList.

Extends

Methods

findItemIndex()

findItemIndex(offset): number

Defined in: src/solid/Virtualizer.tsx:65

Find nearest item index from offset.

Parameters

offset

number

offset in pixels from the start of the scroll container

Returns

number

Inherited from

VirtualizerHandle.findItemIndex


getItemOffset()

getItemOffset(index): number

Defined in: src/solid/Virtualizer.tsx:70

Get item offset from start.

Parameters

index

number

index of item

Returns

number

Inherited from

VirtualizerHandle.getItemOffset


getItemSize()

getItemSize(index): number

Defined in: src/solid/Virtualizer.tsx:75

Get item size.

Parameters

index

number

index of item

Returns

number

Inherited from

VirtualizerHandle.getItemSize


scrollToIndex()

scrollToIndex(index, opts?): void

Defined in: src/solid/Virtualizer.tsx:81

Scroll to the item specified by index.

Parameters

index

number

index of item

opts?

ScrollToIndexOpts

options

Returns

void

Inherited from

VirtualizerHandle.scrollToIndex


scrollTo()

scrollTo(offset): void

Defined in: src/solid/Virtualizer.tsx:86

Scroll to the given offset.

Parameters

offset

number

offset from start

Returns

void

Inherited from

VirtualizerHandle.scrollTo


scrollBy()

scrollBy(offset): void

Defined in: src/solid/Virtualizer.tsx:91

Scroll by the given offset.

Parameters

offset

number

offset from current position

Returns

void

Inherited from

VirtualizerHandle.scrollBy

Properties

cache

readonly cache: CacheSnapshot

Defined in: src/solid/Virtualizer.tsx:48

Get current CacheSnapshot.

Inherited from

VirtualizerHandle.cache


scrollOffset

readonly scrollOffset: number

Defined in: src/solid/Virtualizer.tsx:52

Get current scrollTop, or scrollLeft if horizontal: true. Always positive even in RTL.

Inherited from

VirtualizerHandle.scrollOffset


scrollSize

readonly scrollSize: number

Defined in: src/solid/Virtualizer.tsx:56

Get current scrollHeight, or scrollWidth if horizontal: true.

Inherited from

VirtualizerHandle.scrollSize


viewportSize

readonly viewportSize: number

Defined in: src/solid/Virtualizer.tsx:60

Get current clientHeight, or clientWidth if horizontal: true.

Inherited from

VirtualizerHandle.viewportSize