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: "center" | "end" | "start" | "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.

Type declaration

▸ (): void

Returns

void