Scroll Location
RowLocation
Section titled “RowLocation”RowLocation =
number|RowLocationWithAlign
A location in the list to scroll to. Passing a number scrolls instantly to the row at the specified index aligned to the top. See RowLocationWithAlign for more advanced options.
RowLocationWithAlign
Section titled “RowLocationWithAlign”Specifies a location in the list to scroll to.
Properties
Section titled “Properties”align?: "start" | "center" | "end" | "start-no-overflow"
Section titled “align?: "start" | "center" | "end" | "start-no-overflow"”How to align the item in the viewport.
Set 'smooth' to have an animated transition to the specified location.
done()?
Section titled “done()?”
optionaldone: () =>void
A callback that’s invoked when the scroll is complete.
Returns
Section titled “Returns”void
number | "LAST"
The index of the item to scroll to. Use 'LAST' to scroll to the last item.
offset?: number
Section titled “offset?: number”Use the offset for additional adjustment of the position - can be a positive or negative number.