Skip to main content

Interface: ItemLocationWithAlign

Specifies a location in the list to scroll to.

Properties

index

index: number | "LAST"

The index of the item to scroll to. Use 'LAST' to scroll to the last item.


align?

optional align: "start" | "center" | "end" | "start-no-overflow"

How to align the item in the viewport.


behavior?

optional behavior: ScrollBehavior

Set 'smooth' to have an animated transition to the specified location.


offset?

optional offset: number

Use the offset for additional adjustment of the position - can be a positive or negative number.


done()?

optional done: () => void

A callback that's invoked when the scroll is complete.

Returns

void