PagedComponentContext

Context for managing paginated data in a Compose UI.

Parameters

T

The type of data being paginated.

preset

Optional preset pagination result.

initialPage

Initial page number.

size

Number of items per page.

Functions

Link copied to clipboard
fun loadNext(): Job

Loads the next page of data. If the last page is reached, this function returns early.

Link copied to clipboard
fun loadPrevious(): Job

Loads the previous page of data if available.

Link copied to clipboard
fun reload(): Job

Reloads the current page, refreshing the data.