TInfiniteScrollSide

type
Navigation

Which end(s) of the scroll container trigger the load event in OrigamInfiniteScroll — start, end, or both simultaneously.

TypeScript

Definition

The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

Accepted

Values

Accepted string literal values for this type. Click a value to copy it.

end
The load sentinel is placed at the bottom/right — standard "load more" pagination (default).
start
The load sentinel is placed at the top/left of the scroll container — useful for prepend-loading (e.g. chat history).
both
Sentinels at both ends — bidirectional scrolling. The load event payload includes which side triggered the load.

Ecosystem

Used by

Components and props that accept this type as a value.

Usage

Examples

Ready-to-paste code snippets using this type.

Standard bottom-triggered infinite scroll

html

Bidirectional scroll (chat history)

html