Reference home > @af-utils/virtual-react > mapVisibleRange

mapVisibleRange() function

Map current visible items

Signature:

mapVisibleRange: <T>(model: VirtualScroller, cb: (index: number) => T) => T[]

Parameters

Parameter

Type

Description

model

VirtualScroller

VirtualScroller instance

cb

(index: number) => T

callback

Returns

T[]

Array of currently visible items