optional
align:ScrollToIndexAlign
Alignment of item.
start
: Align the item to the start of the list.center
: Align the item to the center of the list.end
: Align the item to the end of the list.nearest
: If the item is already completely visible, don't scroll. Otherwise scroll until it becomes visible. That is similar behavior tonearest
option of scrollIntoView.
"start"
optional
smooth:boolean
If true, scrolling animates smoothly with behavior: smooth
of scrollTo.
Using smooth scrolling over many items can kill performance benefit of virtual scroll. Do not overuse it.
optional
offset:number
Additional offset from the scrolled position.
0