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?
optionalalign:"start"|"center"|"end"|"start-no-overflow"
How to align the item in the viewport.
behavior?
optionalbehavior:ScrollBehavior
Set 'smooth' to have an animated transition to the specified location.
offset?
optionaloffset:number
Use the offset for additional adjustment of the position - can be a positive or negative number.
done()?
optionaldone: () =>void
A callback that's invoked when the scroll is complete.
Returns
void