interface@af-utils/virtual-core
On this page

VirtualScrollerScrollToIndexOptions

Options accepted by VirtualScroller.scrollToIndex.

Properties

align?

optional align?: VirtualScrollerScrollAlignment;

Position the item at the start, center, or end of the usable viewport. auto avoids scrolling a fully visible item and otherwise uses the nearest edge. Defaults to start.


behavior?

optional behavior?: "auto" | "smooth";

Native scrolling behavior. Defaults to auto.