Skip to content

Latest commit

 

History

History
205 lines (103 loc) · 3.3 KB

VirtualizerHandle.md

File metadata and controls

205 lines (103 loc) · 3.3 KB

API


Interface: VirtualizerHandle

Methods of Virtualizer.

Extended by

Methods

getItemOffset()

getItemOffset(index): number

Get item offset from start.

Parameters

index

number

index of item

Returns

number

Defined in

src/solid/Virtualizer.tsx:62


getItemSize()

getItemSize(index): number

Get item size.

Parameters

index

number

index of item

Returns

number

Defined in

src/solid/Virtualizer.tsx:67


scrollToIndex()

scrollToIndex(index, opts?): void

Scroll to the item specified by index.

Parameters

index

number

index of item

opts?

ScrollToIndexOpts

options

Returns

void

Defined in

src/solid/Virtualizer.tsx:73


scrollTo()

scrollTo(offset): void

Scroll to the given offset.

Parameters

offset

number

offset from start

Returns

void

Defined in

src/solid/Virtualizer.tsx:78


scrollBy()

scrollBy(offset): void

Scroll by the given offset.

Parameters

offset

number

offset from current position

Returns

void

Defined in

src/solid/Virtualizer.tsx:83

Properties

scrollOffset

readonly scrollOffset: number

Get current scrollTop, or scrollLeft if horizontal: true.

Defined in

src/solid/Virtualizer.tsx:41


scrollSize

readonly scrollSize: number

Get current scrollHeight, or scrollWidth if horizontal: true.

Defined in

src/solid/Virtualizer.tsx:45


viewportSize

readonly viewportSize: number

Get current offsetHeight, or offsetWidth if horizontal: true.

Defined in

src/solid/Virtualizer.tsx:49


findStartIndex()

findStartIndex: () => number

Find the start index of visible range of items.

Returns

number

Defined in

src/solid/Virtualizer.tsx:53


findEndIndex()

findEndIndex: () => number

Find the end index of visible range of items.

Returns

number

Defined in

src/solid/Virtualizer.tsx:57