Skip to content

Latest commit

 

History

History
60 lines (34 loc) · 1.49 KB

ScrollToIndexOpts.md

File metadata and controls

60 lines (34 loc) · 1.49 KB

API


Interface: ScrollToIndexOpts

Properties

align?

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 to nearest option of scrollIntoView.

Default Value

"start"

Defined in

src/core/types.ts:32


smooth?

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.

Defined in

src/core/types.ts:38


offset?

optional offset: number

Additional offset from the scrolled position.

Default Value

0

Defined in

src/core/types.ts:43