Skip to main content

Interface: FlatIndexLocationWithAlign

Hierarchy

Properties

align

Optional align: "start" | "center" | "end"

How to position the item in the viewport.

Inherited from

LocationOptions.align

Defined in

dist/index.d.ts:312


behavior

Optional behavior: "auto" | "smooth"

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

Inherited from

LocationOptions.behavior

Defined in

dist/index.d.ts:316


index

index: number | "LAST"

The index of the item to scroll to.

Defined in

dist/index.d.ts:103


offset

Optional offset: number

The offset to scroll.

Inherited from

LocationOptions.offset

Defined in

dist/index.d.ts:320